-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
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
[BUG] #1246
Comments
1.x是正常的大写 |
wenshao
added a commit
that referenced
this issue
Mar 16, 2023
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.26-SNAPSHOT/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
源实体类属性值是大写,序列化的时候key变成了小写,1.x是正常的,2.x是小写;
并且属性名称是单个字母加数字如:P2,@JSONField(name="") 也不生效
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
xxx.xxx
方法...
数据...
错误//可在此输入示例代码
期待的正确结果
{"age":"22","name":"xiaom","aaa":"asda"}
{"age":"22","name":"xiaom","P2":"asda"}
相关日志输出
{"age":"22","name":"xiaom","p2":"asda"}
附加信息
换多字母名称可,好像跟getter、setter名称有关
The text was updated successfully, but these errors were encountered: