Dad’s Data formats tools

JSONPath Explorer

Evaluate JSONPath expressions against JSON data — see all matching nodes. 100% local.

JSON Input
Paste JSON and type a JSONPath expression to explore.

JSONPath Syntax Reference

JSONPath uses $ to refer to the root of the document. Dot notation navigates down the object tree. Square brackets let you access array indices or use filter expressions. The .. operator is a recursive descent — it searches at all depths.

ExpressionWhat it selects
$The root element
$.keyThe value of key at the root
$.a.b.cNested path — value of c inside b inside a
$.arr[0]First element of array arr
$.arr[*]All elements of array arr
$..keyAll values named key anywhere in the document (recursive)
$.arr[-1]Last element (some implementations only)
$.arr[0:3]Slice: elements at index 0, 1, 2
$.arr[?(@.price < 10)]Filter: elements where the price field is less than 10
$.arr[?(@.name == "Alice")]Filter: elements where name equals Alice

Filter Expressions

The ?(@.field operator value) syntax filters array elements. @ refers to the current element in the array being filtered. Supported operators depend on the implementation, but <, >, <=, >=, ==, != are standard. String comparisons use double quotes inside the filter: ?(@.status == "active").

Filter and recursive descent examples
JSON: {"store": {"books": [{"title": "A", "price": 8.99}, {"title": "B", "price": 15.99}]}}

$.store.books[?(@.price < 10)]
→ [{"title": "A", "price": 8.99}]

$..title
→ ["A", "B"]

Common Use Cases

GoalJSONPath expression
Get all titles from a books array$.store.books[*].title
Find books cheaper than $10$.store.books[?(@.price < 10)]
Get the third element$.items[2]
Find all prices anywhere in the doc$..price
Get all keys named id at any depth$..id
Get all elements of the root array$[*]
Get last element of array$.arr[-1:]

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools