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.read读取json对象,内部同时存在com.alibaba.fastjson2.JSONObject和com.alibaba.fastjson.JSONObject对象 #2476

Closed
Vinke2 opened this issue Apr 23, 2024 · 2 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@Vinke2
Copy link

Vinke2 commented Apr 23, 2024

你好,我曾经在 #1922 反馈过类似问题,现在我在最新2.0.49版本的兼容包上面又遇到了这个问题:

List array = (List) JSONPath.read("{\n" +
" "data": [\n" +
" {\n" +
" "id": 7315635187420579130\n" +
" },\n" +
" {\n" +
" "id": 7315635187420579130\n" +
" }\n" +
" ]\n" +
"}", "data");
for (JSONObject jsonObject : array) {
System.out.println(jsonObject.get("id"));
}
@Vinke2 Vinke2 added the bug Something isn't working label Apr 23, 2024
@wenshao wenshao added this to the 2.0.50 milestone Apr 25, 2024
@wenshao
Copy link
Member

wenshao commented Apr 27, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson/2.0.50-SNAPSHOT/
问题已修复,请帮忙用2.0.50-SNAPSHOT版本验证

@wenshao wenshao added the fixed label Apr 27, 2024
@wenshao
Copy link
Member

wenshao commented May 12, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.50
2.0.50已发布,请用新版本

@wenshao wenshao closed this as completed May 12, 2024
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