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
fastjson2序列化的结果和fastjson1不一致。
请填写以下信息:
@Setter @Getter public class MyBean{ private String qStr; } JSONObject obj = new JSONObject(); obj.put("qStr","abc"); MyBean mybean = obj.toJavaObject(MyBean.class); System.out.println(JSON.toJSONString(mybean)); fastjson2最新版本 {"QStr":"abc"} fastjon1 {qStr":"abc"}
fastjson1和fastjson2输出一致。
The text was updated successfully, but these errors were encountered:
通过注解@getter, 会得到setQStr(String)方法. 不兼容原因你可以查看PR Camelcase#issuecomment-1181634178
Sorry, something went wrong.
@kraity 感谢回复。我也已经注意了。如果项目使用lombok,又想升级fastjson2,会有一定的风险。
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.22-SNAPSHOT/ 问题已经修复,使用兼容API保持原来的命名风格输出,请帮忙用2.0.22-SNAPSHOT版本验证,2.0.22版本预计在元旦期间发布
https://github.com/alibaba/fastjson2/releases/tag/2.0.22 问题已修复,请用新版本
No branches or pull requests
问题描述
fastjson2序列化的结果和fastjson1不一致。
环境信息
请填写以下信息:
重现步骤
期待的正确结果
fastjson1和fastjson2输出一致。
The text was updated successfully, but these errors were encountered: