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
同时设置JSONField与JsonProperty,转字符串和字符串转对象结果不同
请填写以下信息:
@Data public static class Node { @JSONField(name = "strValue") @JsonProperty("str_value") private String strValue; } public static void main(String[] args) { Node node = new Node(); node.strValue = "hello world"; String s = JSON.toJSONString(node); System.out.println(s); Node node1 = JSON.to(Node.class, s); System.out.println(node1); }
The text was updated successfully, but these errors were encountered:
fix JSONField & jackson annotation priority problem, for issue #2649
05afe07
https://github.com/alibaba/fastjson2/releases/tag/2.0.51 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
问题描述
同时设置JSONField与JsonProperty,转字符串和字符串转对象结果不同
环境信息
请填写以下信息:
重现步骤
The text was updated successfully, but these errors were encountered: