1.fastjson List转JSONArrayList<T> list = new ArrayList<T>();JSONArray array= JSONArray.parseArray(JSON.toJSONString(list));2.fastjson JSONArray转ListJSONArray array = new JSONArray();List<EventColAttr> list = JSONObject.parseArray(array.toJSONString(), EventColAttr.class);3.fastjson 字符串转ListString str = "";List<T> list = JSONObject.parseArray(str,T.class);
————————————————
fastjson List转JSONArray以及JSONArray转List
最新推荐文章于 2024-07-05 13:47:27 发布