About JSONPath Tester
Write a JSONPath such as $.store.book[*].title or $..price and see straight away what it selects in your document: how many matches, where each one is as a normalized path, and its value. Copy the result as a JSON array of values, as paths, or as JSON Pointers for patch tools and most programming libraries.
Wildcards, recursive descent (..), indexes, negative indexes, unions and slices all work, as do ^ for the parent of a match and ~ for property names. Filter expressions are not available, because they run as code; the tool says so and suggests a safe alternative where there is one.
How it works
- The document is parsed by a strict JSON parser, so a syntax error is reported with its line and column instead of a vague failure.
- Your path is checked for unclosed brackets and quotes before it runs, then evaluated by the jsonpath-plus library with script evaluation switched off.
- Each match is listed with its normalized path in the bracket form of RFC 9535, which names exactly one place in the document.
- Everything runs in a background worker on your device; a query still running after ten seconds is stopped.
Questions
Why can I not use a filter like [?(@.price < 10)]?
Filters and script expressions are evaluated as code, and this tool never runs code taken from a path. To keep the items that have a key, select the key and step back with ^ (for example $..book[*].isbn^). For the last item, use [-1:] instead of [(@.length-1)].
Which JSONPath syntax is supported?
The root $, dot and bracket member names, the wildcard *, recursive descent .., array indexes including negative ones, unions such as [0,2] and slices such as [1:3] or [::-1]. The jsonpath-plus extras ^ (parent) and ~ (property name) also work.
What is the difference between a path and a JSON Pointer?
A normalized path such as $['store']['book'][0] is JSONPath's own way to name one location. A JSON Pointer such as /store/book/0 names the same place in the form used by JSON Patch and many libraries.
How large a document can it handle?
Up to 10 MB, pasted or opened as a file. The table lists the first 500 matches and the copyable result holds up to about 2 million characters; the count always covers every match.
Is my JSON uploaded anywhere?
No. The document is parsed and queried in your browser, and nothing is sent or stored.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.