JSONPath Tester
Evaluate JSONPath expressions against a JSON document and see matching values live.
Ready.
About the JSONPath Tester
JSONPath is to JSON what XPath is to XML — a query language for navigating JSON structures and extracting specific values. This tool lets you write and test JSONPath expressions interactively, instantly showing which data your expression matches.
JSONPath Syntax Reference
$ — root element | . — child operator | .. — recursive descent | * — wildcard (all elements) | [n] — array index | [start:end] — array slice | [?(@.price < 10)] — filter expression
Common JSONPath Examples
$.name — get the top-level "name" field.
$.users[*].email — get all email addresses from a users array.
$.orders[0].total — get the total from the first order.
$..price — recursively find all "price" values anywhere in the document.
$.products[?(@.inStock == true)].name — filter products that are in stock.
JSONPath in Practice
AWS: IAM policy condition keys, EventBridge transformer rules, and Step Functions use JSONPath to extract values from events. Kubernetes: kubectl get pods -o jsonpath='{.items[*].metadata.name}' uses JSONPath to extract pod names. REST clients: Tools like Postman and Insomnia use JSONPath in test assertions to check API responses. Grafana: JSON datasource transformations use JSONPath to extract panel data from API responses.
JSONPath vs jq
JSONPath is simpler and more widely supported in configuration tools and cloud services. jq is more powerful for complex transformations but requires CLI installation. For quick field extraction and filtering, JSONPath is usually the right choice.