🔎

JSONPath Tester

Test JSONPath expressions against a JSON document and see live matching results. Supports dot notation, bracket notation, filters and wildcards. Free, browser-based.

💻 Developer Tools Free Browser-based
Tool
Quick JSONPath reference
ExpressionMeaning
$Root element
.keyChild key
..keyRecursive descent — all descendants named key
[*]All array elements
[0]Array element at index 0
[0,2]Elements at index 0 and 2
[0:3]Slice — elements 0, 1, 2
[-1]Last array element
[?(@.price < 10)]Filter — items where price < 10

What Is JSONPath?

JSONPath is a query language for JSON, analogous to XPath for XML. It allows you to extract specific values from a JSON document using a path expression. JSONPath is widely used in APIs, test automation frameworks (like REST Assured and Postman), and data processing pipelines.

JSONPath Syntax Reference

OperatorDescription
$Root of the JSON document
.key or ['key']Named child
..Recursive descent (deep scan)
*Wildcard — all keys or elements
[n]Array index (0-based, negative from end)
[start:end]Array slice
[?(expr)]Filter expression

Common Use Cases

Use JSONPath to extract values from API responses, validate JSON structure in test suites, transform data in ETL pipelines, or quickly navigate large JSON files without writing custom parsing code.

'Does it support the @ current-node operator?', 'a' => 'Yes. Inside filter expressions, @ refers to the current element being tested, allowing conditions like [?(@.name == "Alice")].'], ]" />