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
Want the engineering deep-dives behind tools like this one?