JSONPath Tester
Test JSONPath expressions against JSON data. Query nested objects and extract specific values.
JSONPath Syntax:
$ - Root object.property - Child property[n] - Array index[-1] - Last element[*] - All elements[0:2] - Slice (start:end)JSONPath Syntax - Technical Details
JSONPath is like XPath for JSON. Use $ for root, .property for children, [n] for array index, [*] for all items, and [start:end] for slices. It's useful for extracting data from complex JSON structures.
Command-line Alternative
// JSONPath examples\n$.store.books[0].title\n$.store.books[*].author\n$..price\n$.store.books[-1]