JSONPath Tester
Free online JSONPath tester. Paste JSON, type an expression like $..book[?(@.price < 10)] and see every match live with its path and JSON Pointer.
JSONPath is a query language for JSON, like XPath for XML: $.store.book[0].title picks one value, $..price finds every price at any depth, and $..book[?(@.price < 10)] filters an array. Paste JSON, type an expression and this tester shows every match as you type, with its normalised path and JSON Pointer, and the matched values as a JSON array you can copy. It uses the jsonpath-plus library with its safe filter evaluator, in your browser.
Runs in your browser. The processing engine downloads once on first use, then the tool works offline. Your files never leave your device. Free, no sign-up.
Features
- Live evaluation as you type
- Filters, recursive descent, wildcards, slices and unions
- Paths and JSON Pointers for each match
- Click-to-try example expressions
- JSON errors shown with position
- Safe filter evaluation, nothing uploaded
How to use JSONPath Tester
- Paste your JSON on the left (or keep the sample bookstore).
- Type a JSONPath expression, or click one of the examples.
- Read the matches on the right: values, paths and JSON Pointers.
- Copy the result array or a single path.
Frequently asked questions
What does $ and @ mean in JSONPath?
$ is the root of the document, so every expression starts with it. @ is the current item inside a filter, so $..book[?(@.price < 10)] keeps the books whose own price is under 10.
What is the difference between . and .. ?
A single dot selects a direct child: $.store.book. Two dots (recursive descent) search at any depth: $..author returns every author property anywhere in the document.
How do I select array items?
Use [0] for the first item, [-1:] for the last, [0,2] for a union of indexes, [1:3] for a slice (items 1 and 2) and [*] for all items. Filters such as [?(@.isbn)] keep items that have a property.
Is JSONPath the same everywhere?
Not quite. JSONPath was informally described by Stefan Goessner in 2007 and implementations differed; RFC 9535 (2024) now standardises it. This tester uses jsonpath-plus, which follows Goessner's syntax plus extras such as ^ for parent and ~ for property names. Check filter and edge-case behaviour against the library your code uses.
Is my JSON sent anywhere?
No. The JSONPath library is downloaded once from a CDN and runs in your browser; your JSON stays on your device.
Related tools
- JSON Formatter — Format, validate and minify JSON
- JSON Schema Validator & Generator — Validate JSON against a schema (draft-07, 2019-09, 2020-12) or generate a schema from sample JSON
- JSON Diff — Compare two JSON documents by path and value
- JSON to Code — Generate TypeScript, Zod, Go, Python or SQL from JSON
- Data Format Converter — Convert between CSV, JSON, YAML, XML and SQL
- Regex Tester — Test regular expressions with live match highlighting