JSONPath Playground
Try JSONPath queries against your own JSON and see the matches instantly. Every result comes with its normalized path, sample queries help you get started, and the matches are ready to copy or send onward as JSON.
Everything runs locally in your browser. Your data never leaves your device.
Matches
- Match 1string
"Sayings of the Century"
- Path
- $['store']['book'][0]['title']
- Pointer
- /store/book/0/title
- Match 2string
"Sword of Honour"
- Path
- $['store']['book'][1]['title']
- Pointer
- /store/book/1/title
- Match 3string
"Moby Dick"
- Path
- $['store']['book'][2]['title']
- Pointer
- /store/book/2/title
- Match 4string
"The Lord of the Rings"
- Path
- $['store']['book'][3]['title']
- Pointer
- /store/book/3/title
Cheat sheet
$the root of the document@the current item inside a filter.key or ['key']a child property, dot or bracket form..keythe property anywhere below, recursive descent*every child property or element[*]every element of an array[2]an element by index, counting from 0[0,2]several indexes at once[1:3]a slice from index 1 up to, not including, 3[-2:]the last two elements[?(@.price < 10)]keep the elements the filter matches[?(@.isbn)]keep the elements that have the property== != < <= > >=comparisons inside a filter&& || !combine or negate filter conditions[(@.length-1)]a computed index, here the last element^step up to the parent of each matchFilter and script expressions run in a restricted parser. Comparisons, arithmetic and property access work, but function calls and anything that reaches outside the document are rejected.
Next steps
Keep going. These tools open with your result loaded in.
Run real jq filters against JSON in your browser. Write a filter, pass options like slurp or raw output, browse a built-in cheat sheet of common filters, and copy the result or send it to another tool.
Paste JSON to explore it as a collapsible, searchable tree, hide the fields you don't need, and see the structure it implies as a badge-annotated schema and a copyable TypeScript interface.
Convert text into every case at once: title case in the APA, AP, Chicago, MLA, Bluebook, AMA and NYT styles, sentence case, upper, lower, camelCase, snake_case, kebab-case and more.
Count words, characters, sentences, paragraphs, lines and more as you type, with estimated reading and speaking time.
Remove duplicate lines from a list or text, keeping the first occurrence. Optionally ignore case and whitespace, or drop blank lines too.
Replace text in two modes: plain find and replace all, or regular expressions with flag controls and capture group references like $1.