-
Notifications
You must be signed in to change notification settings - Fork 495
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] fastjson2生成有$ref引用关系的数据序列化到文件后,解析json文件,不能转换为引用的对象,仍然是$ref #2140
Comments
wenshao
added a commit
that referenced
this issue
Dec 30, 2023
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.45-SNAPSHOT/ |
2.0.45-SNAPSHOT验证没问题了,正式版本什么时候发布呢 |
1月7日之前 |
请问正式版发布了吗 |
你确信下你用的是不是2.0.45我试的好着呢 |
|
好吧,我试了你的数据,可以正常解析ref回去,是在数组里面可以解析回去,我的数据不在数组里面,这种有办法不。 |
那估计是bug吧,你给他们提下 |
好的 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题: fastjson2 版本2.0.43,读取json文件到jsonobject,生成的jsonobject中引用未处理,仍然是$ref
复现场景:
String jsonString = "{"ProjectAttr":[{"ZYAttr":[{"ProjectAttrID":"4777014153688645650","BidNodeID":1,"AttrValue":"3.0"}]}],"ZYAttr":[{"$ref":"$.ProjectAttr[0].ZYAttr[0]"}]}";
JSONObject doc = JSON.parseObject(jsonString);
阅读源码发现,JSONReader.class中:
处理引用的代码没地方调用,是遗漏了吗
The text was updated successfully, but these errors were encountered: