JSONPath 测试器

对 JSON 数据运行 JSONPath 查询,查看匹配的值和路径。

JSON
直接粘贴 JSON,或从此设备导入文件。无效的 JSON 会在运行查询前被标记出来。
JSONPath 查询
输入 JSONPath 查询,以便针对左侧的 JSON 输入进行求值。加载示例可快速试用此工具。
结果
当 JSON 输入和 JSONPath 查询都有效时,匹配的值和路径会立即更新。
匹配数:4
[
  "Nigel Rees",
  "Evelyn Waugh",
  "Herman Melville",
  "J. R. R. Tolkien"
]

Overview

JSONPath 测试器 lets you run JSONPath queries against JSON data directly in the browser and inspect both the matched values and the matched paths side by side.

When To Use It

Use it when you need to prototype a JSONPath query, debug a selector against real payloads, or verify exactly which parts of a JSON document a query is matching.

How It Works

The tool validates the JSON input first, then evaluates the JSONPath query and keeps both result modes available in the same output panel so you can switch between values and paths without rerunning anything.