java list序列化json 对象、json数组

   list<T> 序列化   json对象   ----------- JSONObject -------JSONObject.toJSONString(str);  解析:JSONObject.parseArray(str,T.class);

   list<T> 序列化   json数组   ----------- JSONArray -------JSONArray.toJSONString(str);    解析; JSONArray.parseArray

原文地址:https://www.cnblogs.com/xdcr/p/7273687.html