![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杂记
Agtmwgam
努力充电中
展开
-
将json文本数据转成自己想要的格式
//取得要转换的目标格式的类型Type type = new TypeToken<Map<String, List<TestBean>>>(){}.getType();//根据上面指定格式转换成mapMap<String, List<TestBean>> maps = JsonUtil.fromJson(jsonData, ty...原创 2019-02-14 10:23:35 · 2524 阅读 · 0 评论 -
使用fastjson序列化时,有的属性为null出不来
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(ABCBean, SerializerFeature.WriteNullStringAsEmpty));Fastjson的SerializerFeature序列化属性--来自oschina bfleeee博客QuoteFieldNames———-输出key时是否使...原创 2019-09-16 09:47:59 · 1463 阅读 · 0 评论