Skip to main content
HandyWeb

JSONPath Tester

Try a JSONPath expression on your JSON and see the results and the path of each match right away. Supports filters, array slices, and deep search (..).

Examples
0 characters0 bytes
Show

How to Use It

  1. Paste the JSON.
  2. Type the query, or choose one of the examples.
  3. Copy the values or the paths of the matches.

Questions and Answers

How do I write a filter?

Use ?, and @ for the current node: $.items[?@.price < 10 && @.stock > 0]. Parentheses around the filter are optional.

What form do the paths have?

They are RFC 9535 normalized paths, such as $['store']['book'][0], which have one form for each node.

Good to Know

The RFC 9535 syntax works. Older forms such as JavaScript in filters (?(@.a.length)) do not. match() and search() use the regular expressions of the browser. One query returns up to 10,000 nodes.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)