JSON Path Tester

Test JSONPath expressions (RFC 9535) against any JSON document: wildcards, recursive descent, slices and filters. Results update as you type, in your browser.

Example paths:
JSON INPUTUTF-8 / JSON
2 matches
  1. $.store.books[0].title
    "Clean Code"
  2. $.store.books[2].title
    "JavaScript: The Good Parts"

Path syntax

$.a.bChild members
$['a b']Keys with spaces or symbols
[0] [-1]First / last item
[*]Every item or member
$..priceAt any depth
[0,2] [1:3]Union, slice
[?(@.x > 1)]Filter: == != < <= > >= && || !
=~ /re/iRegex match in a filter

Why use a JSON path tester?

When writing code that accesses nested JSON — from API responses, config files, or database documents — you often need to verify that a path expression resolves to the value you expect. This tool lets you confirm the path before embedding it in your code, saving you a round-trip of print-debugging.

JSONPath goes further than a property chain: $..price finds a key at any depth, [*] walks every item, and filters such as [?(@.status == 'active')] keep only matching items. Each match is listed with its exact path, so you can see where an expression stops matching.

Array indexing

Use [0] for the first element and [-1] for the last; slices like [0:3] take a range. $.store.books[-1].price gives the price of the last book.

Privacy first

Path evaluation runs entirely in your browser tab. Your JSON never reaches any server. No upload, no log, no tracking of your payload.

Common questions

What is a JSON Path?
A JSON Path is a query expression used to extract specific values from a JSON document. Similar to XPath for XML, JSON Path lets you navigate nested objects and arrays using dot notation (store.name), bracket notation (store.books[0]), and wildcards.
What syntax does this tester support?
JSONPath as standardized in RFC 9535: dot and bracket notation ($.store["books"][0]), negative indices ([-1]), wildcards ([*] and .*), recursive descent ($..price), unions ([0,2]), slices ([1:3], [::-1]), filters ([?(@.price < 10 && @.inStock)]), and the functions length(), count(), match(), search() and value(). Regex comparisons with =~ /pattern/i are accepted too.
What is the difference between dot and bracket notation?
Dot notation (obj.key) works for simple alphanumeric keys. Bracket notation (obj["key-with-dashes"]) is needed for keys containing special characters, spaces, or hyphens. Both notations are equivalent for plain keys.
Can I use wildcards and filters?
Yes. $.store.books[*].title returns every title, $..price returns every price at any depth, and $.store.books[?(@.price > 30)] keeps only the books above 30. The same engine powers the Query panel of the main editor, where you can also open the results as a new document.
Is my JSON data safe?
All path evaluation runs locally in your browser using JavaScript. Your data never leaves your device, is never uploaded, and disappears when you close the tab.
What does "0 matches" mean?
The expression is valid but selects nothing: a key is missing or misspelled, an index is out of bounds, or a filter excludes every item. Each match is listed with its normalized path, which helps to see where an expression stops matching.