JSONPath Tester
Evaluate JSONPath expressions against JSON data instantly in your browser.
JSON Input
JSONPath Expression
All book titles
First book
Bicycle price
All prices (recursive)
Books in stock
Fiction books
JSONPath Tester — Evaluate JSONPath Expressions
JSONPath is a query language for JSON data, similar to XPath for XML. It allows you to select and extract specific parts of a JSON document using a concise path expression.
Supported Syntax
$— Root of the document.key— Child property access[*]— All elements of an array[0],[1]— Array index access..key— Recursive descent (search all nested levels)*— Wildcard: all properties/elements[?(@.key == value)]— Filter expressions
Example Expressions
$.store.book[*].title— All book titles$..price— All price fields anywhere in the document$.store.book[?(@.inStock == true)]— Books that are in stock$.store.book[0]— The first book