Test JSONPath expressions against JSON data with real-time matching and highlighted results.
This free online JSONPath tester lets you evaluate JSONPath expressions against JSON data in real-time. JSONPath is a query language for JSON, similar to XPath for XML.
| Expression | Description |
|---|---|
| $ | Root object |
| .key | Child property |
| [n] | Array index (0-based) |
| [-n] | Array index from end |
| [start:end] | Array slice |
| [*] | All elements in array |
| .* | All child properties |
| .. | Deep scan (recursive descent) |
| [?(@.key op value)] | Filter expression |
== — equals (strings must be quoted: @.name=='Alice')!= — not equals<, >, <=, >= — comparisonJSONPath is a query language for extracting data from JSON documents, proposed by Stefan Goessner in 2007. It's similar to XPath for XML. JSONPath expressions start with $ (the root) and use dot notation or bracket notation to navigate the JSON structure.
JSONPath is used in REST API testing (Postman, REST Assured), data pipelines (Apache NiFi, AWS Step Functions), monitoring and alerting (Datadog, PagerDuty), configuration management, and many programming libraries.
JSONPath uses dot notation ($.store.book[0].title) while jq uses pipe-based filters (.store.book[0].title). jq is more powerful for transformations; JSONPath is simpler for querying. Both are widely used.