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.extract解析不对 #80

Closed
HuangZL-github opened this issue Apr 25, 2022 · 1 comment
Closed

jsonPath.extract解析不对 #80

HuangZL-github opened this issue Apr 25, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@HuangZL-github
Copy link

String str = "{"id":123,"姓名":{"location":{"top":277,"left":618,"width":372,"height":164},"words":"张三"},"log_id":1453528763137919643}";

JSONPath jsonPath = JSONPath.of("log_id");
JSONReader parser = JSONReader.of(str);
System.out.println(jsonPath.extract(parser));

为什么获取到的结果是{"location":{"top":277,"left":618,"width":372,"height":164},"words":"张三"},而不是1453528763137919643

@wenshao wenshao added this to the 2.0.2 milestone Apr 25, 2022
@wenshao wenshao added the bug Something isn't working label Apr 25, 2022
@wenshao
Copy link
Member

wenshao commented May 2, 2022

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

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

No branches or pull requests

2 participants