标签:
1.json转list
1 List<TenantMember> tm= (List<TenantMember>)JSONArray.toCollection(JSONArray.fromObject(jsonString), TenantMember.class);
1 List list = (List)JSONArray.toList(JSONArray.fromObject(json), Person.class);
1 List list = (List)JSONArray.toList(JSONArray.fromObject(json), new Person(), new JsonConfig());
2.list转json
1 JSONArray jsonarray = JSONArray.fromObject(list);
标签:
原文地址:http://www.cnblogs.com/hym-pcitc/p/5691122.html