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
@JsonUnwrapped加在方法上时未生效
请填写以下信息:
可复现代码
public class FastJsonTest { @Test public void testFastJson() throws Exception { CombineView combineView = new CombineView(); String jacksonResult = new ObjectMapper().writeValueAsString(combineView); String fastjsonResult = JSON.toJSONString(new CombineView()); Assert.assertEquals(jacksonResult, fastjsonResult); } static class CombineView { @JsonUnwrapped public View1 author() { return new View1(); } } static class View1 { public String getAuthorName() { return "name"; } } }
结果
org.junit.ComparisonFailure: Expected :{"authorName":"name"} Actual :{}
正确处理方法上的@JsonUnwrapped,兼容jackson
The text was updated successfully, but these errors were encountered:
fix jackson annotation JsonUnwrapped compatible, for issue #2846
9728336
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.53-SNAPSHOT/ 问题已修复,请帮忙用2.0.53-SNAPSHOT帮忙验证,2.0.53版本预计在这个周末发布
Sorry, something went wrong.
验证已经修复,thanks
https://github.com/alibaba/fastjson2/releases/tag/2.0.53 请用新版本
wenshao
No branches or pull requests
问题描述
@JsonUnwrapped加在方法上时未生效
环境信息
请填写以下信息:
重现步骤
可复现代码
结果
期待的正确结果
正确处理方法上的@JsonUnwrapped,兼容jackson
相关日志输出
附加信息
The text was updated successfully, but these errors were encountered: