JSONPath 在线查询工具
在线使用 JSONPath 表达式查询 JSON 数据,支持过滤、通配符、数组切片等完整语法,结果带完整路径可一键复制,数据仅在浏览器本地运算
JSON 数据
查询结果(4 项)
0
$['store']['book'][0]['title']Sayings of the Century1
$['store']['book'][1]['title']Sword of Honour2
$['store']['book'][2]['title']Moby Dick3
$['store']['book'][3]['title']The Lord of the Rings快捷示例
JSONPath 语法速查
$ 根节点 · $.store.book 取子属性 · $.store.book[*] 数组所有元素$..price 递归搜索所有 price · $.store.book[0] 数组下标$.store.book[0:2] 切片(含头不含尾)· $..book[?(@.price < 50)] 按条件过滤$.store.* 通配符 · @ 当前节点示例数据为 JSONPath 经典的 store 书店示例(Stefan Goessner 原版)。