JSONPath Tester

Test JSONPath expressions against JSON data with support for dot notation, wildcards, recursive descent, and array slicing.

Frequently Asked Questions

JSONPath is a query language for JSON, similar to XPath for XML. It allows you to navigate and extract data from JSON documents using path expressions like $.store.book[0].title to access nested values.
This tool supports: $ (root), . (dot notation for child), [] (bracket notation), [*] (wildcard for all elements), .. (recursive descent to search all levels), [n] (array index), and [start:end] (array slicing).
The recursive descent operator (..) searches all levels of the JSON document for the specified key. For example, $..name will find every 'name' property anywhere in the document, regardless of nesting depth.
Array slices use the syntax [start:end] where start is inclusive and end is exclusive. For example, $[0:3] returns the first 3 elements. You can omit start (defaults to 0) or end (defaults to array length). Negative indices count from the end.
Yes. Use [*] to select all elements of an array or all values of an object. For example, $.store.book[*].author returns the author of every book in the array.