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

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

猜你喜欢

转载自jianggege.iteye.com/blog/1570226