JSONPath Query & Node Extractor

Paste JSON and query paths such as $.users[0].name or $..price.

Supports keys, array indexes, [*], and $..key.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/jsonpath-tester" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/jsonpath-tester" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - JSONPath Query & Node Extractor</a></div>

Supported subset

This dependency-free tester supports root paths, dot keys, bracket indexes or quoted keys, array wildcards, and recursive key lookup. It intentionally avoids pretending to implement every JSONPath dialect.

Formats, sizes and other limits

The path is not regular-expression-parsed; it is tokenised character by character. A path must open with $, and the tokeniser then reads .key segments, ..key for recursive descent, .* and [*] for wildcards, numeric indexes such as [0] or [-1], and quoted keys such as ['first name'] for names that are not valid identifiers. The token list is then walked against your parsed JSON, collecting every value that matches, and the matches are printed in document order with an option to copy them out. Malformed paths are rejected with a specific message — a path that does not start with $, a dangling dot, or a recursive marker with nothing after it — so you can see which part of the expression the walker refused.

Where it stops working

This is a deliberately small dialect, not a JSONPath engine. Filter expressions such as [?(@.price > 10)], script expressions, unions, slices, functions and parent or root selectors are not implemented, and a path that uses them will either fail or match nothing. Recursive descent collects matches depth-first in whatever order the object's keys happen to be in, which is insertion order for string keys, and duplicate keys in the source JSON are already collapsed by the JSON parser before the walker sees them. The whole document is parsed and traversed on the main thread, so an enormous payload blocks the page while it is walked, and results are displayed for reading or copying only — there is no export file.

Privacy: nothing is uploaded

Both the JSON and the expression are handled in the page: the document is parsed by the browser's JSON parser, the tokens are walked locally, and nothing is transmitted because the tool has no backend to transmit to. It also works with the network disabled.

Frequently asked questions

Which JSONPath syntax is supported?

Root $, dot keys, bracket indexes, quoted keys, the .* and [*] wildcards and recursive descent with ..key. Anything beyond that — filters, slices, unions, script expressions — is outside this implementation and will not match.

Why did my path match nothing even though the key exists?

Check the case and the shape: keys are matched exactly, and a dot segment looks for an object property while a bracket index looks for an array position. A wildcard also only visits the current level unless you add recursive descent with two dots.

Can I query a huge JSON API response here?

Up to what your browser can parse, yes, but the walk is synchronous, so a multi-megabyte payload will freeze the interface while it runs. Trim the response first, or query a smaller excerpt, if you are exploring interactively.