Back to Tools

JSON Path Explorer

Pull a single value, one array item or a filtered list out of a JSON document with a simple JSONPath expression.

JSON Input

Paste JSON, or load the sample bookstore data

JSONPath Query

Start with $ for the root, then add keys and array indexes

Result

The value your expression points to

Execute a JSONPath query to see the result

What is JSONPath?

JSONPath is a way to point at part of a JSON document, much like XPath does for XML. This explorer supports the basic syntax below: child keys, array indexes and simple less-than filters.

Supported syntax

SymbolDescriptionExample
$Root element$
.Child operator$.store.book
[n]Array index$.store.book[0]
[?()]Filter (less-than comparisons only)$.store.book[?(@.price < 10)]

Examples

Get all books with price less than 10:

$.store.book[?(@.price < 10)]

Get the third book:

$.store.book[2]

How to use it

Paste, query, copy.

1

Paste your JSON

Paste the JSON you want to query into the input box.

2

Enter an expression

Type an expression such as $.store.book[0], or click one of the sample queries, then click Execute.

3

Copy the result

The matching value appears as formatted JSON. Copy Result puts it on your clipboard.

Other JSON tools

Convert JSON to a table, CSV or XML, format it, or compare two files.

View All Tools