- FastJSON List ת JSONArray
List<T> list = new ArrayList<T>(); JSONArray array= JSONArray.parseArray(JSON.toJSONString(list)); # null值也返回 String jsonStr = JSON.toJSONString(slipTaskList, SerializerFeature.WriteMapNullValue);
- FastJSON JSONArrayת List
JSONArray array = new JSONArray(); List<EventColAttr> list = JSONObject.parseArray(array.toJSONString(), EventColAttr.class);
文章来源: https://blog.csdn.net/baidu_32872293/article/details/92658677