JSONPath Evaluator

Query JSON data using JSONPath expressions - the XPath equivalent for JSON. Enter your JSON on the left, write a JSONPath expression, and see all matched results with their full paths. Great for testing API queries and data extraction.

FAQ

JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract and filter data from deeply nested JSON structures. Common expressions: $.store.books[*].title (all book titles), $..price (all prices anywhere), $.store.books[0] (first book).

This tool supports dot notation ($.key.subkey), bracket notation ($['key']), wildcards ($.store.books[*].title), and recursive descent ($..price). It handles arrays and nested wildcard traversal. For advanced features like filters (?(@.price < 10)), consider using a full JSONPath library.

JSONPath is simpler and focused on extraction. JMESPath adds filtering and transformation functions. jq is a full programming language for JSON with functions, conditionals, and output formatting. JSONPath is best for simple navigation and extraction in API testing and configuration.

$ represents the root of the JSON document. @ represents the current node being processed (used in filter expressions). .. is recursive descent (search all descendants). [*] selects all elements of an array. [?(@.price < 10)] filters array elements by a condition.

JSONPath is focused on querying and extracting data, offering a simpler syntax. jq is a full programming language for JSON transformations. JSONPath expressions are supported by many tools and APIs (Kubectl, AWS CLI, Postman), making it a widely-compatible choice for data extraction.