Skip to main content

JSONPath Tester

Test JSONPath expressions against your JSON data. Supports $, .key, [n], [*], and ..key. Filter expressions like [?(@.price > 10)] are not supported.

JSON Input
Matched Results
Enter JSON and a JSONPath expression to see results

JSONPath Syntax

$ Root object
.key Child by name
['key'] Bracket child
[0] Array index
[*] Wildcard (all children)
..key Recursive descent

How to Test JSONPath Expressions

JSONPath is a query language for JSON, similar to XPath for XML. This tester evaluates expressions against pasted JSON using $ for the root, .key or ['key'] for children, [n] for indexes, [*] for wildcards, and ..key for recursive descent.

Filter expressions such as [?(@.price > 10)] are not supported. Keep queries to the operators listed above, or reshape the JSON first with the tree viewer and formatter. All matching happens in your browser.

Tips

  • Start with $ and add one segment at a time until the match count looks right.
  • $..price finds every price field no matter how deep it is nested.
  • Load the bookstore example if you need a known document to practice against.

More from Shane Code