JSONPath Tester
Write and test JSONPath query expressions against a JSON document to extract exactly the values you need.
JSONPath Tester
Test JSONPath expressions against your JSON data to extract specific values and arrays.
About JSONPath
JSONPath is a query language for JSON, similar to XPath for XML.
Supported syntax:
$- Root object$.property- Access object property$.array[0]- Access array element by index$.array[*]- Access all array elements$.nested.deep.property- Access nested properties
Perfect for: API response parsing, data extraction, testing API queries.
What is JSONPath?
JSONPath is a query language for JSON, analogous to XPath for XML. It lets you navigate a JSON document and extract one or more values using a concise expression syntax. A path starts with $ (the root element) and uses dot notation ($.user.name) or bracket notation ($['user']['name']) to traverse keys, with wildcards (*), recursive descent (..), and filter expressions ([?(...)]) available for more powerful queries.
Common Use Cases
API Response Parsing: Extract a specific field — such as a transaction ID or status — from a deeply nested API response without deserialising the entire document.
Testing Assertions: Use JSONPath expressions in test frameworks (Postman, REST Assured) to assert on specific values in a response body.
Data Transformation Pipelines: Select and reshape fields from JSON records as part of an ETL or data enrichment workflow.
Webhook Routing: Evaluate a field in an incoming webhook payload to determine how to route or process the event.
Tips
Use $..fieldName (recursive descent) to find a key at any depth in a document without knowing the exact path upfront.
Filter expressions like $[?(@.amount > 100)] are powerful for querying arrays — test them here before embedding them in production code.
JSONPath implementations vary slightly across languages. Validate your expression against your target runtime (e.g., Jayway for Java, jsonpath for Python) to confirm identical behaviour.