JSONPath Tester
Run a JSONPath expression and inspect every match.
Loading tool…
About this tool
Queries a JSON document with a path expression — the JSON equivalent of XPath — and lists every match alongside the path that produced it. Filter expressions run in a sandboxed interpreter rather than through eval, so a path string cannot execute code.
Limitations
- Script expressions are disabled, because evaluating them means running arbitrary JavaScript. Filter expressions still work.
- JSONPath has no single specification. Other implementations may differ at the edges.
Questions
- Why does $..price return values from everywhere?
- The recursive descent operator .. searches at any depth. Use an explicit path such as $.store.book[*].price to restrict it.
- Are script expressions supported?
- Filter expressions like ?(@.price < 10) work. Script expressions that would evaluate arbitrary JavaScript are disabled by design.
Privacy
This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.