Java将json字符串转化成Object对象

JSONObject dd = (JSONObject) JSONObject.fromObject(weatherjson).get(condition);
WeatherData weatherData = (WeatherData) JSONObject.toBean(dd,WeatherData.class);
 

相关推荐