这是一个创建于 3963 天前的主题,其中的信息可能已经有所发展或是发生改变。
{"weatherinfo":{"city":"福州","cityid":"101230101","temp":"14","WD":"东南风","WS":"1级","SD":"39%","WSE":"1","time":"15:30","isRadar":"1","Radar":"JC_RADAR_AZ9591_JB"}}
//转换方法
WeatherInfo weatherInfo = gson.fromJson(response, WeatherInfo.class);
public class WeatherInfo
{
private RealTimeWeather realWeather;
}
public class RealTimeWeather
{
private String city;
private String cityid;
private String temp;
private String WD;
private String WS;
private String SD;
private String WSE;
private String time;
private String isRadar;
private String Radar;
}
有人能看出问题吗?
2 条回复 • 1970-01-01 08:00:00 +08:00