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.contains()不支持中文key? #1988

Closed
Mr-LiuDC opened this issue Aug 1, 2018 · 2 comments
Closed

JSONPath.contains()不支持中文key? #1988

Mr-LiuDC opened this issue Aug 1, 2018 · 2 comments
Labels
Milestone

Comments

@Mr-LiuDC
Copy link

Mr-LiuDC commented Aug 1, 2018

fastjson版本1.2.33

在使用fastjson判断json字符串某个节点是否存在时,JSONPath.contains()似乎不支持中文key,或者需要做特殊设置?
感谢。

$.product.features.规格 ,这种方式会报错,错误如下:

com.alibaba.fastjson.JSONPathException: illeal jsonpath syntax. $.product.features.规格

$.product.features.specification ,这种方式就没问题。

@wenshao

@wenshao wenshao added the bug label Aug 1, 2018
@wenshao wenshao added this to the 1.2.49 milestone Aug 1, 2018
@wenshao
Copy link
Member

wenshao commented Aug 5, 2018

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

@wenshao wenshao closed this as completed Aug 5, 2018
@Mr-LiuDC
Copy link
Author

Mr-LiuDC commented Aug 7, 2018

好的,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants