We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
测试用例:
public static void main(String[] args) { String a = "{\"resultCode\":\"200013\",\"message\":\"查询成功\",\"data\":{\"clientName\":\"张三\",\"clientId\":\"3002674743\",\"phoneNumber\":\"13412345678\",\"gender\":2,\"age\":59}}"; JSONObject jsonObject = JSONObject.parseObject(a, Feature.OrderedField); System.out.println(jsonObject); }
2.0.3版本输出如下:
{"data":{"clientId":"3002674743","phoneNumber":"13412345678","gender":2,"clientName":"张三","age":59},"resultCode":"200013","message":"查询成功"}
1.2.83版本输出如下:
{"resultCode":"200013","message":"查询成功","data":{"clientName":"张三","clientId":"3002674743","phoneNumber":"13412345678","gender":2,"age":59}}
见源issue
The text was updated successfully, but these errors were encountered:
improved fastjson 1.x compatible, issue #334
b261853
https://github.com/alibaba/fastjson2/releases/tag/2.0.5 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
测试用例:
2.0.3版本输出如下:
1.2.83版本输出如下:
见源issue
The text was updated successfully, but these errors were encountered: