JSONPath Tester
Run a JSONPath against your JSON and see what it selects.
Your data never leaves your browser
This tool runs entirely on your computer. What you paste or drop is never uploaded, never stored and never seen by us — close the tab and it's gone. How we know
Sign up to run — no credit card required.
Press Run to see the output. Sign up takes ten seconds — no credit card required.
Worked example
$.order.id
---
{"order":{"id":"7"}}1 match
[
"7"
]This example is one of JSONPath Tester's test cases — if the tool stopped producing this output, the build would fail.
Questions
- How do I use it?
- Put the JSONPath on the first line, then a line containing only ---, then your JSON.
- Which JSONPath syntax is supported?
- A deliberate subset: $.a.b, $.a[0], $.a[*].b, and $..b recursive descent. Filter expressions ($.a[?(@.b==1)]) are refused explicitly rather than quietly matching nothing.
- Why refuse instead of returning no matches?
- Because 'no matches' and 'I didn't understand your query' look identical, and one of them wastes an hour of your afternoon.