读书人

java中对JSON格式数据进展解析和映射

发布时间: 2012-12-27 10:17:10 作者: rapoo

java中对JSON格式数据进行解析和映射

/*JSONArray ja=JSONArray.fromObject(jsons);System.out.println(ja.size());ja.getJSONObject(0);*/JSONObject joo=new JSONObject();joo=JSONObject.fromObject(jsons);DonateIntention bean = (DonateIntention)JSONObject.toBean(joo,DonateIntention.class ); System.out.println(bean.getName());

读书人网 >JavaScript

热点推荐