Developer Tools
JSONPath Tester and Evaluator
Run JSONPath expressions against JSON and see the matches live.
- No external services
- Built by Derar Sattouf
JSONPath Tester
JSONPath
JSON
Results
Loading…
Supported syntax
| Syntax | Meaning |
|---|---|
$ | The root of the document |
.name ['name'] | A child by name (use the bracket form for names with spaces or symbols) |
..name ..* ..[…] | Recursive descent: search at every depth |
* [*] | Every child of an object or array |
[0] [-1] | An array item by index; negative numbers count from the end |
[start:end:step] | An array slice; every part is optional and the step can be negative |
[0,2] ['a','b'] | A union of indexes, names, slices or wildcards |
[?(@.price < 10)] [?@.isbn] | A filter: == != < <= > >=, && || !, parentheses and existence tests |
@ $ | Inside a filter: the current item and the root |
length() count() match() search() | Filter functions; match() tests the whole string, search() any part of it |
Not supported: script expressions such as [(@.length-1)], arithmetic, the =~ and in operators, the parent (^) and key (~) selectors, and value().
Guide
What is the JSONPath Tester?
The JSONPath Tester runs a JSONPath expression against JSON you paste and shows the matching values, or the path of each match, as you type. It supports child and bracket notation, wildcards, recursive descent, array indexes and slices, unions and filter expressions, and reports syntax errors with their position.
Last updated: November 2026 · Built by Derar Sattouf
How to use it
- 01Paste your JSON into the JSON panel.
- 02Type a JSONPath expression, or pick one of the examples.
- 03Read the matching values, or switch to paths to see where each match is.
- 04Copy the result.
Features
- Root, child (.name and ['name']), wildcard and recursive descent (..)
- Array indexes, negative indexes, slices [start:end:step] and unions [0,2]
- Filters with == != < <= > >=, && || !, parentheses and existence tests
- Filter functions length(), count(), match() and search()
- Values or normalized paths of every match
- Syntax errors reported with their position
- Runs locally: no upload, no sign-up
Frequently asked questions
Is my JSON sent to a server?
No. The tool runs entirely in your browser with JavaScript, so your JSON is never sent to my server.
Which JSONPath syntax is supported?
The root $, child names in dot form (.name) and bracket form (['name']), wildcards (* and [*]), recursive descent (..name, ..*, ..[…]), array indexes including negative ones, slices such as [0:4:2] and [::-1], unions such as [0,2] or ['a','b'], and filters such as [?(@.price < 10)] or [?@.isbn]. Filters accept ==, !=, <, <=, >, >=, &&, || and !, parentheses, the current item @, the root $, string, number, true, false and null literals, and the functions length(), count(), match() and search().
What is not supported?
Script expressions such as [(@.length-1)], arithmetic inside filters, the =~ and in operators, the parent (^) and key (~) selectors found in some libraries, and the value() function. Use match() or search() in place of =~, and [-1] in place of [(@.length-1)].
Does it follow RFC 9535?
It follows RFC 9535, the JSONPath standard, for the parts it implements: slices, comparisons and the length, count, match and search functions behave as the RFC describes. It is a subset, not a complete implementation, and it also accepts the older [?(...)] filter form with parentheses.
Why does my filter return nothing?
A filter tests the children of the node it is applied to, so use $.items[?(@.price < 10)] on the array itself. Names are case-sensitive, and < and > only compare a number with a number or a string with a string, so a price stored as the string "10" never matches @.price < 20.
Related developer tools
- JSON FormatterFormat, validate and minify JSON online, explore it in a tree view and convert it to CSV, XML or YAML. Free, private and runs in your browser. Paste and go.
- JSON to ZodGenerate a Zod schema from JSON with optional and nullable fields, unions, and email, URL, UUID and date checks. For Zod 4 or Zod 3. Runs in your browser.
- JSON YAML CSV ConverterConvert between JSON, YAML and CSV in your browser: JSON to YAML for configs, CSV to JSON for APIs and back again. Free, fast and private data converter.