JSONPath Tester
Paste JSON and a JSONPath expression to see exactly what matches, with the path to each result. Runs entirely in your browser; nothing you paste is ever sent anywhere.
Quick Learn
JSONPath is to JSON what a file path is to a filesystem, or a CSS selector is to HTML — a compact syntax for pointing at one or more values inside a document without writing a loop. $ refers to the root, a dot (.) walks into a child key, [*] matches every item in an array or every key in an object, and .. (recursive descent) searches at any depth, no matter how deeply nested.
Filter expressions take it further: [?(@.price < 20)] keeps only array items whose price is under 20, letting you query by condition instead of by position. This tool evaluates expressions with a sandboxed, eval-free engine — no filter you write here can execute arbitrary code — and runs entirely in your browser.
Best Practices
- •Start broad and narrow down: try $.. first to see everything, then add keys and filters once you know where the value you want actually lives.
- •Use [*] for "every item" and .. for "at any depth" — mixing them up is the most common source of an empty result set.
- •Filter expressions reference the current item as @, e.g. [?(@.price < 20)] — not the root ($) — a frequent source of confusion when porting a filter from a different tool.
- •An expression that matches nothing usually means a typo in a key name or an array index that's out of range, not a broken tool — check the exact key names in your JSON first.
More JSON Tools
JSON Formatter & Validator
Pretty-print, minify, and validate JSON with precise error locations.
JSON Compare
Structural diff between two JSON documents.
JSON ↔ YAML Converter
Convert between JSON and YAML instantly.
JSON ↔ CSV Converter
Flatten and unflatten tabular JSON to CSV.
JSON Schema Generator
Infer a JSON Schema from a sample payload.
JSON to TypeScript Interface
Generate TS types from a JSON sample.
JSON Validator
Deep, schema-aware validation for JSON documents.
JSON to Table
View JSON as an interactive, sortable table.
Frequently Asked Questions
Is my data uploaded or stored anywhere?
No. Both your JSON and the JSONPath expression are evaluated entirely in your browser — nothing is sent to a server or stored anywhere.
What's the difference between . and ..?
A single dot (.key) looks for that key as a direct child of the current object. Two dots (..key) search recursively at any depth, checking every nested object and array for a matching key.
How do filter expressions work?
A filter like [?(@.price < 20)] keeps only the array items where the condition is true, with @ referring to the item currently being tested. You can combine conditions with && and ||, e.g. [?(@.price < 20 && @.category == "fiction")].
Is it safe to run someone else's JSONPath expression here?
Yes — this tool evaluates filter expressions with a sandboxed engine that doesn't use JavaScript's eval or Function, so an expression can't execute arbitrary code, even a maliciously crafted one.
Why does the path shown for a match look different from what I typed?
Matched paths are shown in their normalized bracket form (e.g. $['store']['book'][0]['title']) regardless of whether you used dot or bracket notation in your query — both forms are equivalent.
Want the engineering deep-dives behind tools like this one?