JSONPath Tester
Test JSONPath expressions against your JSON and see every match with its path.
How to use the JSONPath Tester
- Paste your JSONPaste the JSON you want to query, or start with the sample bookstore.
- Write an expressionType a JSONPath such as $.store.book[*].author, or click an example.
- Read the matchesMatching values appear as a JSON array, with the exact path of each match below.
Example
$..book[?(@.price < 10)].title on the sample returns ["Sayings of the Century", "Moby Dick"].
$.store.book[-1:] returns the last book, and $..author finds every author at any depth.
Frequently asked questions
What is JSONPath?
A query language for JSON, similar to XPath for XML. It is used in API testing tools like Postman, in Kubernetes (kubectl) and in many data pipelines to pick values out of JSON.
Which syntax is supported?
$ (root), .name and ['name'], * wildcards, .. recursive descent, [0] and [-1] indexes, [0,2] unions, [start:end:step] slices, and filters like [?(@.price < 10)], [?(@.isbn)] and [?(@.name =~ /^A/)].
Is my data sent anywhere?
No. The expression is evaluated entirely in your browser.