sangsen

JSONPath Tester

Run a JSONPath expression against JSON and see exactly which values it matches, by path.

Matches

Paste JSON and enter a JSONPath expression to see matches.

How it works

Paste JSON and a JSONPath expression. Both are evaluated entirely in your browser — nothing is sent to a server — supporting $, .key, ['key'], [n], wildcards (.* and [*]), and ..key recursive descent. Each match is shown with its own resolved concrete path (e.g. $.items[0].id) and value. Filter expressions, slices, and unions are not supported and are rejected with a clear message rather than silently mishandled.

Example

Wildcard over an array
{"store":{"book":[{"title":"A"},{"title":"B"}]}} | $.store.book[*].title$.store.book[0].title "A" $.store.book[1].title "B"

FAQ

Is my JSON uploaded anywhere?
No. Evaluation happens entirely in your browser — nothing you paste ever leaves your machine.
What JSONPath syntax is supported?
$ (root), .key, ['key'], [n] (array index), .* and [*] (wildcards), and ..key (recursive descent). Filter expressions, array slices, unions, and negative indices are not supported.
What happens if the path matches nothing?
You get a clear "No matches" result — that is a valid outcome, not an error.
What happens if I use unsupported syntax, like a filter expression?
You get a clear error naming exactly which construct is not supported, instead of a wrong or silently empty result.