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

json的key中有逗号取不到值 #2743

Closed
kevlxy opened this issue Sep 16, 2019 · 4 comments
Closed

json的key中有逗号取不到值 #2743

kevlxy opened this issue Sep 16, 2019 · 4 comments

Comments

@kevlxy
Copy link

kevlxy commented Sep 16, 2019

json:

{"info":
{"com.xxx.service.xxxServiceForOrder@queryGoodsV2(Long,Long,Long)":
[{"method":"queryPrepayGoodsV2"}]
}
}

jsonpath:
$['info']['com.xxx.service.xxxServiceForOrder@queryGoodsV2(Long,Long,Long)']

用上述jsonpath取值时,返回[null,null,null],请问这种情况怎么处理?

@kimmking
Copy link
Contributor

括号,@,和点,在jsonpath里都有特殊含义

@kevlxy
Copy link
Author

kevlxy commented Sep 17, 2019

括号,@,和点,在jsonpath里都有特殊含义

感谢回复。想问下,那需要怎么转义呢?返回的json就是这样的

@kimmking
Copy link
Contributor

我搞错了,上面应该是合法的匹配。it;s a bug.
image

@kevlxy
Copy link
Author

kevlxy commented Sep 18, 2019

我搞错了,上面应该是合法的匹配。it;s a bug.
image

期待大佬尽快安排修复~

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

No branches or pull requests

3 participants