java list序列化json 对象、json数组时间:2023-03-09 16:43:19 list<T> 序列化 json对象 ----------- JSONObject -------JSONObject.toJSONString(str); 解析:JSONObject.parseArray(str,T.class); list<T> 序列化 json数组 ----------- JSONArray -------JSONArray.toJSONString(str); 解析; JSONArray.parseArray