JSONPath 查询
使用 JSONPath 表达式提取和查询 JSON 数据
JSON 数据输入
查询表达式
$
$.store.book[*].author
$..author
$.store.book[?(@.price < 10)]
$.store.book[-1:]
查询结果
[ "Nigel Rees", "Evelyn Waugh", "Herman Melville" ]
语法库 (Cheatsheet)
$ 根对象. 子属性.. 递归查找* 通配符[] 下标/过滤@ 当前对象