JSONPath Query

Type a JSONPath expression and a JSON document — see the matched nodes instantly. RFC 9535, runs entirely in your browser, no upload, no sign-up.

Matches

Query JSON with JSONPath in your browser

Paste a JSON document, type a JSONPath expression, and see the matched nodes instantly. Everything runs locally in your browser with a pure-Rust, RFC 9535 engine — your data is never uploaded to a server.

Examples

JSONPath syntax

Notes

FAQ

Why did my query return nothing — is that an error?

No. A JSONPath query legitimately selects zero, one, or many nodes, so "no match" simply produces empty output (or [] when "Wrap matches in a JSON array" is ticked). You only get an error for an empty/invalid expression or JSON that doesn't parse.

What does the "Wrap matches in a JSON array" option change?

By default each matched value is printed on its own line — easy to eyeball, but the output as a whole isn't valid JSON when there are multiple matches. Wrapping returns one JSON array containing all matches, which you can feed straight into another tool or script.

Which JSONPath dialect does this follow?

The IETF standard, RFC 9535. The familiar constructs all work — $..price recursive descent, [*] wildcards, [start:end:step] slices, negative indices, and [?(@.price < 10)] filters — but non-standard extensions from older "Goessner-style" implementations may be rejected with a parse error.

Can I filter on more than one condition?

Yes — filter expressions support logical operators, so $[?(@.active && @.age >= 18)] selects elements matching both conditions, with @ referring to the element currently being tested.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool jsonpath-query '$.store.book[*].author' 'json={ "store": { "book": [ { "author": "Nigel Rees" } ] } }'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/jsonpath-query/?path=%24.store.book%5B%2A%5D.author&json=%7B%20%22store%22%3A%20%7B%20%22book%22%3A%20%5B%20%7B%20%22author%22%3A%20%22Nigel%20Rees%22%20%7D%20%5D%20%7D%20%7D&pretty=true&wrap=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.