JSONPath Tester
Testing JSONPath expressions by hand is slow and error-prone. Paste your JSON, type an expression like $.store.book[*].title, and see the path and value of every match instantly. The preset examples above the editor cover filtering, slicing and recursive search.
Examples:
Matches: 0
Supported syntax
| Expression | Meaning |
|---|---|
| $.a.b | Child property |
| $['a'] | Bracket child (for special names) |
| $[0], $[-1] | Array index, from the end |
| $[1:4], $[::2] | Slice (start:end:step) |
| $.* , $[*] | All children (wildcard) |
| $..name | Recursive descent — the name at every depth |
| [?(@.price < 10)] | Filter: == != < <= > >=, && || ! |
| $[0,2,'a'] | Union — multiple indexes or keys |
How to use
- Paste your JSON in the box above (or click Sample JSON).
- Write a JSONPath expression or click an example button.
- Click Test Expression — the path and value of every match will appear below.