JSONPath Finder
Type a JSONPath expression and instantly see the values it selects in your JSON, together with the normalized path of each match.
Processed locally in your browser/ Your data stays in your browser.
What is JSONPath Finder?
JSONPath is a query language for JSON, similar to XPath for XML. An expression such as $.store.book[?(@.price < 10)].title walks the document and returns every value that matches, which is handy for extracting fields from API responses or writing assertions in tests.
This tool has its own evaluator, written without eval or dynamic code execution. It supports $, .key, ['key'], [n], negative indexes, [*], recursive descent (..), unions, slices [start:end:step] and filters with comparisons, && , || , ! and parentheses. Results are shown as a JSON array and as a list of normalized paths such as $['store']['book'][0]['title'].
How does it work?
- Paste your JSON document in the input box.
- Type a JSONPath in the expression field, for example $..author or $.items[?(@.qty > 1)].sku.
- Read the matches (as JSON) and the list of paths that were matched.
- Refine the expression until it selects exactly what you need, then copy the result.
Common use cases
- Extracting one field from every element of a large API response.
- Prototyping a JSONPath before using it in Postman, a REST assertion or a Kubernetes query.
- Finding the exact path of a value that appears somewhere deep in a document.
- Filtering records by price, status or tag without writing a script.
Examples
Try this input in the tool above:
{"store":{"book":[{"title":"Sayings of the Century","author":"Nigel Rees","price":8.95,"category":"reference"},{"title":"Sword of Honour","author":"Evelyn Waugh","price":12.99,"category":"fiction"},{"title":"Moby Dick","author":"Herman Melville","price":8.99,"category":"fiction"}],"bicycle":{"color":"red","price":19.95}}}[ "Moby Dick" ]
Privacy
JSONPath Finder runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
This is a practical JSONPath subset: script expressions, regex matching and nested filters are not supported, and behaviour on edge cases can differ from other implementations.
Frequently asked questions
Which JSONPath syntax is supported?
Root $, dot and bracket child access, [n] and [-n] indexes, [*] and .* wildcards, .. recursive descent, unions like [0,2] or ['a','b'], slices, and filters such as [?(@.price < 10 && @.category == 'fiction')] with ==, !=, <, <=, >, >=.
Is it safe to type any expression?
Yes. The expression is parsed by a hand-written parser and evaluated by plain code: nothing is passed to eval, so a malicious expression cannot run code. Prototype keys such as __proto__ or constructor are never followed.
What does a filter with only @.isbn do?
A path used alone inside a filter is an existence test: elements that have an isbn property are kept, the others are dropped.
Related tools
JSON Viewer
Explore a JSON document as an expandable tree instead of a wall of text, with a summary of its structure.
JSON & Data
JSON Formatter & Beautifier
Turn a minified or messy JSON document into readable, consistently indented text, with a precise error message if the JSON is invalid.
JSON & Data
JSON Validator
Check whether a piece of text is valid JSON and locate the exact character where it goes wrong.
JSON & Data
JSON to TypeScript
Paste a JSON sample and get ready-to-use TypeScript declarations that describe its shape.
JSON & Data
JSON Key Sorter
Reorder the keys of every JSON object alphabetically to get a stable, canonical document.
JSON & Data
JSON Diff – Compare Two JSON Documents
Paste two JSON documents and see what changed in the data, regardless of key order or indentation.
JSON & Data