JSONPath Query
Query JSON with JSONPath and see every match with its JSON Pointer path.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
The expression matched 2 value(s).
How it works
- Parsed the JSON document with the verbatim scanner.
- Compiled the JSONPath expression to child, wildcard and recursive steps.
- Walked the tree and normalized each match to an RFC 6901 pointer.
- Filters, slices and functions are outside the supported subset and are reported as errors.
Methodology
- Parse the document with the F054 verbatim scanner.
- Compile the expression to a sequence of child, wildcard and recursive-descent steps.
- Evaluate depth-first in document order and normalize each match to an RFC 6901 pointer.
Usage
- Paste a JSON document.
- Enter a JSONPath expression such as $.store.book[*].title or $..price.
- Run the tool and read each match with its pointer path.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Member and wildcard
{
"text": "{\"store\":{\"book\":[{\"title\":\"A\"},{\"title\":\"B\"}]}}",
"path": "$.store.book[*].title"
}Recursive descent
{
"text": "{\"a\":{\"price\":1},\"b\":{\"price\":2}}",
"path": "$..price"
}Array index
{
"text": "{\"items\":[10,20,30]}",
"path": "$.items[1]"
}Limitations
Pointers from matches
Every match is labelled with its RFC 6901 JSON Pointer path so it can be pasted into the JSON Pointer tool or a JSON Patch document.
Frequently asked questions
- Which JSONPath features are supported?
- Root $, child .name and ['name'], recursive ..name, wildcards .* and [*], array index [n], and unions such as ['a','b'].
- Why did my filter fail?
- Filter expressions are outside the supported subset; the tool reports the position of the unsupported syntax instead of guessing.
- Is my data uploaded?
- No. The query runs entirely in your browser and is never sent anywhere.
Sources
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.