JSONPath tester and query evaluator
Test, evaluate, and extract data from JSON documents with JSONPath queries. All evaluation executes client-side with zero server latency and zero data exposure.
How to evaluate JSONPath expressions
- Paste your JSON document into the left pane, or click Sample to load a demonstration store dataset.
- Type a JSONPath expression into the query bar at the top (e.g.
$.store.book[*].titleor$..price). - Press Evaluate or hit ⌘↵ / Ctrl↵. Matched elements and values are displayed formatted in the results panel.
- Click Copy JSON to place the extracted data straight onto your clipboard.
JSONPath syntax reference
| Syntax | Name | Meaning |
|---|---|---|
$ | Root object | References the root JSON element or object. |
.name | Child property | Selects a direct child property by key name. |
..name | Recursive descent | Searches recursively for all nested properties matching the name. |
* | Wildcard | Matches all properties or array elements at the current level. |
[n] | Array index | Accesses array element at index n (0-based). |
[start:end] | Array slice | Extracts array items from index start up to end. |
[?(@.price < 10)] | Filter expression | Filters array elements matching the boolean condition. |
Common JSONPath examples
$..author— All authors anywhere in document$.store.book[*]— All books in the store$.store.book[0]— The first book$.store.book[-1:]— The last book in the collection$.store.book[?(@.isbn)]— Books with an ISBN number$.store.book[?(@.price < 10)]— Books priced under $10
Frequently asked questions
What is JSONPath?
JSONPath is a standardized query language for JSON documents, analogous to XPath for XML. It allows developers to selectively extract properties, nested structures, array slices, and filtered items using clean path expressions starting with $.
Does this JSONPath tester send my JSON to any server?
No. The JSONPath query evaluator runs 100% client-side in your browser using JavaScript. No document content or queries are ever transmitted over the network.
What operators does this JSONPath evaluator support?
It supports root ($), child property (.key or ['key']), recursive descent (..key), array indices ([0]), array slicing ([0:2]), wildcards (*), and comparison filter expressions ([?(@.price < 10)]).