We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用多属性选取时['id','name']
['id','name']
json:
{ "deep1": { "flightId": "MH8633", "column": "C", "row": "19" } }
java:
JSONPath.extract(json,"$.deep1['row','column']")
获取返回值:
["19","C"]
{ "deep1": { [{ "flightId": "MH8633", "column": "C", "row": "19" }] } }
获取返回值为:
[{ "flightId": "MH8633", "column": "C", "row": "19" }]
能否给个例子 https://alibaba.github.io/fastjson2/jsonpath_cn
The text was updated successfully, but these errors were encountered:
我现在用stream.map去做
Sorry, something went wrong.
fix jsonpath multi-name not support array, for issue #1507
4dffc98
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.33-SNAPSHOT/
请帮忙用2.0.33-SNAPSHOT版本验证
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.33-SNAPSHOT/ 请帮忙用2.0.33-SNAPSHOT版本验证
在我的case里它正常工作了,但因为用的是公司的数据测试,我无法提供具体的测试集
https://github.com/alibaba/fastjson2/releases/tag/2.0.33 请用新版本
No branches or pull requests
在使用多属性选取时
['id','name']
正例:
json:
java:
获取返回值:
反例
json:
java:
获取返回值为:
能否给个例子 https://alibaba.github.io/fastjson2/jsonpath_cn
The text was updated successfully, but these errors were encountered: