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.