JSONPath (RFC 9535) is a standardized query language for filtering, traversing, and extracting sub-elements and values from JSON documents.
JSONPath (RFC 9535) is an expression language for navigating and extracting specific nodes, object keys, and array slices from JSON data structures. Analogous to XPath for XML, JSONPath expressions are supported in Kubernetes kubectl output formatting, CI/CD pipelines, and API testing suites.
Test and debug JSONPath expressions interactively with our JSONPath Tester, run complex transformations in the jq Playground, or format payloads in the JSON Formatter.
| Syntax | Description | Example |
|---|---|---|
$ |
The root object or element | $ |
. or [] |
Child operator | $.store.book or $['store']['book'] |
.. |
Recursive descent (deep search) | $..author (find all authors anywhere in document) |
* |
Wildcard selector (all elements) | $.store.book[*].price |
[start:end:step] |
Array slice operator | $.items[0:5] (first 5 items) |
?(@...) |
Filter expression | $.store.book[?(@.price < 10)] |
Free, browser-based utilities to test, generate, and inspect JSONPath Expression Syntax & Querying payloads directly.
Query and extract data from JSON documents using JSONPath.
Interactive jq expression tester, filter builder, and JSON transformer powered by WebAssembly.
Prettify, minify, and validate JSON data instantly.
Generate TypeScript interfaces, Zod schemas, and Valibot schemas from JSON.