fastjson中toString与toJSONString的差别
时间:2019-12-24 16:45:36
收藏:0
阅读:1182
查看JSONObject源码:
@Override public String toString() { return toJSONString(); } public String toJSONString() { SerializeWriter out = new SerializeWriter(); try { new JSONSerializer(out).write(this); return out.toString(); } finally { out.close(); } }
其实toString()方法内部还是调用了toJSONString()方法
原文:https://www.cnblogs.com/zouhong/p/12091493.html
评论(0)