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]JSON.parseObject把字符串转换为对象的时候出现多余的前缀,使用小于等于2.0.33的版本就是正常的 #1735
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.39-SNAPSHOT/ |
依然还是有问题
Admin
***@***.***
|
wenshao
added a commit
that referenced
this issue
Aug 14, 2023
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.39-SNAPSHOT/ |
刚才我就是用的这个2.0.39-SNAPSHOT测试的
Admin
***@***.***
|
今天下午2点的这个没问题,非常感谢,我是挨个试的
|
感谢你帮忙发现这个隐蔽的问题,我会尽快发布新版本修复此问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
Joson字符串转换的时候会出现多余的字符串
环境信息
重现步骤
1、下面这段Json字符串转换后DG_GridColumn下面的FIELDNAME就变成了PKFIELDNAME
2、如果USERNAME设置为空或者删掉这个字段就能正常显示。
var Json = "{"DG_GridMain":[{"PKFIELDNAME":"USERID","USERNAME":"测试"}],"DG_GridColumn":[{"FIELDNAME":"USERID"}]}";
var JsonObj = JSON.parseObject(Json);
发生问题的图如下,这个箭头不应该是这样的应该是没有PK的:
使用小于等于2.0.33的版本就是正常的:
期待的正确结果
希望别在有多余的东西出现。
The text was updated successfully, but these errors were encountered: