JSONPath Tester
Test JSONPath expressions like $..price or $.items[?(@.price < 10)] and see every match with its exact path.
JSON
Result
Matches with paths
| Path | Value | |
|---|---|---|
| $.store.book[0].title | "Sayings of the Century" | |
| $.store.book[2].title | "Moby Dick" |
JSONPath syntax cheat sheet
$ | The root object |
.key or ['key'] | Child by name |
..key | Search at any depth (recursive) |
* | All children |
[0], [-1] | Array item by index (negative counts from the end) |
[0:3], [::2] | Slice: start, end, step |
[0,2] or ['a','b'] | Several items |
[?(@.price < 10)] | Filter with ==, !=, <, <=, >, >=, =~ /regex/, &&, ||, ! |
Guides
More free tools
JSON ViewerTree view, search, copy path. Handles huge files.JSON FormatterBeautify or minify JSON in one click.JSON ValidatorClear errors with exact line and column.JSON RepairFix broken JSON in one click.JSON to CSVFlatten nested JSON into a spreadsheet.JSON ⇄ YAMLConvert between JSON and YAML.JSON to TypeScriptGenerate TS interfaces from sample data.JSON DiffSee what changed between two JSON files.