这是一个创建于 2715 天前的主题,其中的信息可能已经有所发展或是发生改变。
3 条回复 • 2018-01-20 16:14:29 +08:00
![kevinzhwl](https://cdn.v2ex.com/avatar/3afe/7eae/110735_normal.png?m=1428897025) |
|
1
kevinzhwl 2017-09-11 21:02:46 +08:00 via iPhone
印象中 jsonobject 继承自 json 点进去看代码呗
|
![shenhb](https://cdn.v2ex.com/gravatar/16a31c5ccf496f53ae423d5c1dd22283?s=48&d=retro) |
|
2
shenhb 2017-09-12 09:15:25 +08:00
看这字面意思 JSONObject.toJSONString 不就是 json 对象转化为 json 字符串吗? 后者应该是重写的 toSting 方法,
|
![loongwang](https://cdn.v2ex.com/avatar/e957/1c97/106355_normal.png?m=1490023055) |
|
3
loongwang 2018-01-20 16:14:29 +08:00
就是在内部又调用了一下 toJSONString.............
|