-
Notifications
You must be signed in to change notification settings - Fork 479
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] Exception in JSONPath.eval #2585
Comments
wenshao
added a commit
that referenced
this issue
May 16, 2024
wenshao
added a commit
that referenced
this issue
May 16, 2024
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.51-SNAPSHOT/ |
验证已修复,辛苦温少 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
JSONPath.eval 两个不同字符串时抛exception,以下代码在fastjson 1.2.83中均通过,感觉是个问题
环境信息
重现步骤
相关日志输出
com.alibaba.fastjson2.JSONValidException: error, offset 51, char :
at com.alibaba.fastjson2.JSONReader.error(JSONReader.java:4544)
at com.alibaba.fastjson2.JSONReaderUTF16.skipValue(JSONReaderUTF16.java:3726)
at com.alibaba.fastjson2.JSONPathSegmentIndex.accept(JSONPathSegmentIndex.java:489)
at com.alibaba.fastjson2.JSONPathMulti.extract(JSONPathMulti.java:402)
at com.alibaba.fastjson2.JSONPath.extract(JSONPath.java:56)
at com.alibaba.fastjson2.JSONPath.eval(JSONPath.java:66)
at Issue1965_757_2.testMutant2(Issue1965_757_2.java:39)
The text was updated successfully, but these errors were encountered: