JSONPath Tester
Query JSON data with JSONPath expressions. Supports filters, wildcards, and recursive descent.
Quick Reference
About this tool
JSONPath is a query language for JSON documents, providing a compact syntax for selecting and filtering values within a JSON structure. It was proposed by Stefan Goessner in 2007 as an analog to XPath for JSON. JSONPath expressions begin with $ representing the root element, and use dot notation or bracket notation to traverse the structure: $.store.book[0].title selects the title of the first book, and $..author selects every author value at any depth.
Key JSONPath operators: $ (root), . or [] (child), .. (recursive descent through all descendants), * (wildcard for all children), [n] (array element at index n), [start:end] (array slice), and [?(@.price < 10)] (filter expression selecting elements that satisfy the condition). Filter expressions use @ to refer to the current element being evaluated. This combination allows complex queries like 'all books under $10 by a specific author'.
JSONPath is used in: AWS CloudFormation for conditional expressions and value selection, Kubernetes admission webhooks and kustomize patches, API gateway request/response transformations, test assertion libraries (comparing selected values against expected values), and data pipeline configurations. Note that JSONPath is not fully standardized — different implementations have minor syntax differences, particularly for filter expression syntax and the behavior of recursive descent. The IETF published RFC 9535 in 2024 to standardize JSONPath.