Skip to content
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

使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 #1922

Closed
Vinke2 opened this issue Oct 8, 2023 · 2 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@Vinke2
Copy link

Vinke2 commented Oct 8, 2023

          JSONObject jsonObject = new JSONObject();
    JSONPath.set(jsonObject,"$a.d", new JSONObject().fluentPut("cc",1));
    System.out.println(jsonObject.get("a").getClass().getName());
    System.out.println(jsonObject.getJSONObject("a").get("d").getClass().getName());

image

@Vinke2 Vinke2 changed the title 使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 [BUG] 使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 Oct 9, 2023
@Vinke2 Vinke2 changed the title [BUG] 使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 [BUG]使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 Oct 9, 2023
@Vinke2 Vinke2 changed the title [BUG]使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 使用兼容包的JSONPath.set构建json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 Oct 9, 2023
@wenshao wenshao added this to the 2.0.42 milestone Oct 24, 2023
@wenshao
Copy link
Member

wenshao commented Oct 24, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.42-SNAPSHOT/
问题已修复,请帮忙用2.0.42-SNAPSHOT版本验证,正式版本预计在下个周末(11月5日)发布。

@wenshao wenshao added bug Something isn't working fixed labels Oct 24, 2023
@wenshao
Copy link
Member

wenshao commented Nov 5, 2023

https://github.com/alibaba/fastjson2/releases/tag/2.0.42
问题已修复,请用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants