编程语言
首页 > 编程语言> > 【Java】+JSON数据格式化输出

【Java】+JSON数据格式化输出

作者:互联网

https://www.cnblogs.com/shoufeng/p/11196500.html

JSONObject object = JSONObject.parseObject(jsonString);

String pretty = JSON.toJSONString(object, SerializerFeature.PrettyFormat, SerializerFeature.WriteMapNullValue, SerializerFeature.WriteDateUseDateFormat);

 

标签:www,格式化,JSONObject,object,SerializerFeature,JSON,Java
来源: https://www.cnblogs.com/danhuai/p/12828733.html