JSONPath Tester
Test JSONPath expressions against any JSON document and see matching results instantly. Supports RFC 9535 syntax including recursive descent, filters, and wildcards. Runs entirely in your browser.
$ | Root element |
$.foo | Property access |
$..bar | Recursive descent |
$[0] | Array index |
$[*] | All array items |
$[-1:] | Last item (slice) |
$.foo[?(@.price > 10)] | Filter expression |
$..book[0,1] | Union / multi-index |
About this tool
JSONPath is a query language for JSON, analogous to XPath for XML. It lets you select one or many values from a JSON document using a compact path expression. The syntax was originally proposed by Stefan Goessner in 2007 and was formally standardised as RFC 9535 in 2024.
Common use-cases include extracting fields from API responses, writing assertions in automated tests, configuring AWS EventBridge rules and Kubernetes admission policies, and querying log data in tools like Loki and OpenSearch. Libraries exist for every major language; the expression syntax is portable across all of them.
This tester uses the jsonpath-plus library, which is one of the most complete browser-compatible implementations available and supports the full RFC 9535 feature set including filter expressions, recursive descent, slices, and union selectors. Everything runs in your browser -- your JSON is never sent anywhere.
If you work with command-line JSON processing, jq uses its own query language (not JSONPath) but solves a similar problem for shell pipelines. JSONPath shines in scenarios where the query must be stored as a string inside a config file, database, or API payload.