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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简要描述您碰到的问题。
请填写以下信息:
测试类:
private class TestObject{ private String a; private String b; public String getA() { return a; } public void setA(String a) { this.a = a; } public String getB() { return b; } public void setB(String b) { this.b = b; } public boolean isA(){ return true; } public boolean isB(){ return false; } } public static void main(String[] args) { TestObject object = new TestObject(); object.setA("a"); object.setB("B"); System.out.println(JSON.toJSONString(object)); } 输出: {"a":"a","b":false}
{"a":"a","b":“b”}
追踪源码发现: 生成FieldWriter时,获取类方法后直接进行遍历生成,未进行排序: 对比FastJson1
The text was updated successfully, but these errors were encountered:
bug fix for getter method order, fix issue #549
48658ff
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.10-SNAPSHOT/ 问题已修复,请用2.0.10-SNAPSHOT版本验证,2.0.10版本预计在7月底发布
Sorry, something went wrong.
https://github.com/alibaba/fastjson2/releases/tag/2.0.10 问题已修复,请用新版本
No branches or pull requests
问题描述
简要描述您碰到的问题。
环境信息
请填写以下信息:
重现步骤
测试类:
期待的正确结果
{"a":"a","b":“b”}
附加信息
追踪源码发现:
生成FieldWriter时,获取类方法后直接进行遍历生成,未进行排序:
对比FastJson1
The text was updated successfully, but these errors were encountered: