JSON Path Explorer
Pull a single value, one array item or a filtered list out of a JSON document with a simple JSONPath expression.
JSON Input
Paste JSON, or load the sample bookstore data
JSONPath Query
Start with $ for the root, then add keys and array indexes
Result
The value your expression points to
Execute a JSONPath query to see the result
What is JSONPath?
JSONPath is a way to point at part of a JSON document, much like XPath does for XML. This explorer supports the basic syntax below: child keys, array indexes and simple less-than filters.
Supported syntax
| Symbol | Description | Example |
|---|---|---|
| $ | Root element | $ |
| . | Child operator | $.store.book |
| [n] | Array index | $.store.book[0] |
| [?()] | Filter (less-than comparisons only) | $.store.book[?(@.price < 10)] |
Examples
Get all books with price less than 10:
$.store.book[?(@.price < 10)]
Get the third book:
$.store.book[2]
How to use it
Paste, query, copy.
Paste your JSON
Paste the JSON you want to query into the input box.
Enter an expression
Type an expression such as $.store.book[0], or click one of the sample queries, then click Execute.
Copy the result
The matching value appears as formatted JSON. Copy Result puts it on your clipboard.