JSONPath Tester
Compare & SearchWrite a JSONPath expression and see exactly which values it matches.
Test JSONPath expressions online
JSONPath is to JSON what XPath is to XML: a compact query language for selecting values out of a document. Instead of writing code to dig through nested objects and arrays, you write an expression like $.store.book[*].author and get back every matching value.
This tester evaluates your expression against your JSON as you type and shows every match instantly, so you can build and debug a path interactively before dropping it into your application, a jq-style pipeline, or a tool that speaks JSONPath.
The JSONPath syntax, by example
A few building blocks cover almost everything you'll need:
- $ — the root of the document; every expression starts here.
- .key or ['key'] — step into a named property.
- [*] or .* — every element of an array or object.
- .. — recursive descent: search every level, e.g. $..price.
- [0], [-1], [1:3] — array index, last item, and slices.
- [?(@.active)] — filter to elements matching a condition.
Test JSONPath queries online
Before you bake a JSONPath expression into code or a config, it helps to see it run. Paste your JSON, type a query, and this online JSONPath tester shows every matching value as you type — so you can refine a path, confirm a filter, or debug why a selector returns nothing. It is the same role jq plays for the shell, in the browser and without an install.
JSONPath examples — common query patterns
The most common JSONPath patterns: $.name selects the top-level name field. $.users[*].email selects the email field from every element of the users array. $..price selects every price field anywhere in the document using recursive descent. $.items[0] selects the first array element; $.items[-1] the last. $.items[?(@.active == true)] filters to elements where active is true.
Paste your JSON above, type an expression, and see every matching value highlighted as you type. JSONPath is used in Postman test scripts, REST-assured, Gatling, AWS Step Functions, and Kubernetes jsonpath output — testing a query here before embedding it in code saves a debugging cycle. Recursive descent (..), array slices ([1:3]), and filter predicates are all supported. For a slower walkthrough of the same syntax, read this JSONPath tutorial with worked examples.
Everything in the JSONPath Tester
Test JSONPath expressions against your JSON online and see every matching value instantly. Supports wildcards, recursive descent, array slices, and filter expressions. Free, private, in-browser.
Live evaluation
Matches update the moment you change the expression or the JSON.
Full JSONPath syntax
Wildcards (*), recursive descent (..), array slices, and filter expressions.
See every match
All matching values are collected into a JSON array you can copy.
Example expressions
One-click examples to learn the syntax against your own data.
Frequently asked questions
The full common syntax: the root $, child access with dot or bracket notation, wildcards (.* or [*]), recursive descent (..), array indexing and slices ([0], [-1:], [1:3]), unions, and filter expressions such as [?(@.price < 10)].
Start at the root with $, then walk into the data: $.store.book[*].author selects every author, $..price finds every price at any depth, and $.items[?(@.active)] filters by a condition. Use the example chips to see each pattern run against the sample.
If the expression is valid but selects nothing, you'll see a 'No matches' message rather than an error. A malformed expression reports the syntax problem so you can correct it.
Yes. Click 'Load from URL', paste any public URL that returns JSON — an API endpoint, a raw GitHub file, or a CDN asset — and the content loads instantly in your browser. The request goes directly from your device; nothing passes through our servers.
No. Every operation runs entirely in your browser using client-side JavaScript. Your JSON is never uploaded, logged, or stored on any server — it never leaves your device.
Yes, completely free with no sign-up required. There are no usage limits, no watermarks, and no premium gate on any feature.
Related tools
JSON Search & Replace
Find any key, value, or path in your JSON — and replace across the document.
JSON Tree Viewer
Turn JSON into an interactive, searchable tree you can expand and collapse.
JSON Viewer
View JSON data and objects online — syntax highlighting, collapsible nodes, free and private.
JSON Formatter
Beautify, minify, and repair messy JSON — even Python dicts and JS objects — into clean, valid output.