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
@Getter @Setter public class Clothing { @JSONField(name = "tShirtType") private List<String> tShirtType; public static void main(String[] args) { Clothing clothing = new Clothing(); if (clothing.getTShirtType() == null) { clothing.setTShirtType(new ArrayList<>()); } clothing.getTShirtType().add("Sweater Vest"); System.out.println(JSON.toJSONString(clothing)); } }
打印的是 {"TShirtType":["Sweater Vest"]} 还是TShirtType
fastjson 1没问题
The text was updated successfully, but these errors were encountered:
bug fix for firstChar upper case getter method, field annotation not …
3a24b40
…work, for issue #638
https://github.com/alibaba/fastjson2/releases/tag/2.0.11 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
打印的是
{"TShirtType":["Sweater Vest"]}
还是TShirtType
fastjson 1没问题
The text was updated successfully, but these errors were encountered: