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

JSONObject object = JSONObject.parseObject(jsonString);

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

 

相关文章: