JSONPath Tester & Evaluator Online
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
JSON
Paste JSON on the left and the values and paths your query matches appear here.
About this tool
Paste a JSON document, type a JSONPath expression such as $.store.book[?(@.price < 10)].title and see the matching values straight away, along with the exact path of each match. Five example queries are listed under the box, and the Sample button loads a small bookstore document.
On that sample, $..author returns all three authors, $..price returns four prices (8.95, 12.99, 8.99 and the bicycle’s 19.95), $.store.book[-1] gives the last book, and $.store.book[0:2].title returns the first two titles. The filter $.store.book[?(@.price < 10)].title gives “Sayings of the Century” and “Moby Dick”. Each match is also listed as a normalised path such as $['store']['book'][2]['title'], which is handy when you need the exact location in code.
Supported syntax: $ for the root, dot and bracket child access, [*] and .* wildcards, ..name recursive descent, array indexes (including negative ones), unions like [0,2], slices like [1:3], and filters with == != < <= > >=, && and || as well as simple existence checks such as [?(@.isbn)].
Functions, regular-expression matching and parenthesised filter groups are not supported. Everything runs in your browser. Libraries differ on details such as how they treat a filter on a missing key, so use the paths here as a guide and check the result in the library you will use. If the JSON is invalid, the message says so before any query runs, and an unknown syntax shows a message rather than failing silently.
Frequently asked questions
What is JSONPath?
A query language for JSON, similar to XPath for XML. It lets you pick out values from a large document with a short expression.
What does ".." do?
It searches at any depth. $..price finds every price key anywhere in the document.
Why do I get "No matches"?
The path may not exist, or a filter may compare different types — a number is never less than a string. Check key names and capitalisation first.
How do I filter on two conditions?
Join them with && or ||, for example $..book[?(@.price > 10 && @.category == "fiction")].title returns “Sword of Honour” on the sample.
Does it follow a standard?
It implements a common subset of RFC 9535, the JSONPath standard. The rules are linked beside the query box.