JsonSnacksRuns in your browser

JSONPath Tester & Playground

New

Write a JSONPath and see the matches highlighted live.

JSONPath
JSON0 lines
Matches0 results
Paste JSON on the left, then write a path.
Syntaxclick to add
$Root
.keyChild
..keySearch at any depth
[*]All items
[0]Item at index
[-1:]Last item
[0,2]Several items
[1:3]Slice
[?(@.price > 40)]Filter
[?(@.name =~ /^A/)]Regex filter

What does the JSONPath Playground do?

JSONPath is a query language for JSON. An expression such as $.store.books[?(@.price > 40)].title selects values from a document, much like XPath does for XML. This tester evaluates your expression live and highlights every match.

How to use the JSONPath Playground

  1. Paste your JSON into the left pane.
  2. Type a JSONPath in the expression box, starting with $ for the root.
  3. Read the Matches tab for values and their paths, or switch to Highlighted to see them in the document.
  4. Use the Syntax panel to insert operators such as [*], .. and [?()] with one click.

When it helps

  • Building a query before putting it in code
  • Checking a path used in a test or a config file
  • Extracting a few fields from a large response

Frequently asked questions

What is JSONPath?

JSONPath is a query syntax for selecting parts of a JSON document. $ is the root, . selects a child, [*] selects all items and [?(...)] filters items.

How do I filter an array with JSONPath?

Use a filter expression, for example $.items[?(@.price > 10)]. Inside the filter, @ means the current item. You can combine conditions with && and ||.

What does $.. mean?

Two dots mean recursive descent: search at any depth. $..price returns every price key anywhere in the document.

Which JSONPath features are supported?

Child and bracket access, indexes including negatives, wildcards, unions, slices, recursive descent, filters with comparisons, && || and !, regex matching with =~, and length().

Keep going with your JSON

Runs entirely in your browser: your JSON is never uploaded. Last updated 23 October 2026.

Paste JSON to begin. Size, validity and depth appear here.