JSONPath Tester

Run JSONPath queries on your JSON and watch matches update as you type.

How JSONPath Tester works

Runs a JSONPath query on your JSON and shows what it matches. Results update as you type, in the query or in the JSON. Use it to test a query before you put it in your code.

Supports the common JSONPath syntax: $ for the root, . and [] for children, .. for any depth, [*] for all items, slices like [-1:] and filters like [?(@.price < 10)].

Input to JSONPath Tester

  • JSON: paste or type it into the input box, or upload a .json or .txt file.
  • Query: type your JSONPath in the Query box, like $.tools[*].title. Pick one from Examples to get started.
  • Filters run in a safe mode, so a query cannot run code. Files up to 20MB, and everything runs in your browser.

Output from JSONPath Tester

  • The matches as a JSON array. The panel header shows how many matches there are.
  • Show Values to see the matched data, or Paths to see where each match is, like $['tools'][0]['title'].
  • If nothing matches, you see a message. If the query has a mistake, you see what went wrong.
  • Copy the result or download it as jsonpath-result.json.