2019年4月10日

fastjson JSON 对象为空保留null

摘要: JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(Object, SerializerFeature.WriteMapNullValue)); 阅读全文

posted @ 2019-04-10 14:51 天天天12345 阅读(1957) 评论(0) 推荐(0) 编辑

fastjson List转JSONArray以及JSONArray转List

摘要: 1.fastjson List转JSONArrayList<T> list = new ArrayList<T>();JSONArray array= JSONArray.parseArray(JSON.toJSONString(list)); 2.fastjson JSONArray转ListJS 阅读全文

posted @ 2019-04-10 10:14 天天天12345 阅读(2225) 评论(0) 推荐(0) 编辑

导航