JSONPath Query Tester
Query, filter, and extract items from complex JSON files using JSONPath expressions.
100% Client-Side (No data leaves your device)
Raw JSON Payload
0 chars
1
Query Results
1
JSON path query outputs will appear here...
User Guide: Querying Data with JSONPath
What is JSONPath?
JSONPath is to JSON what XPath is to XML. It defines a query syntax to navigate and query parameters inside deep objects. Instead of writing custom loops in Javascript or Python, developers use path statements to isolate specific parameters (like "all prices" or "the first index title") in single lines of code.
Query Syntax Cheatsheet
$: The root object or element..or[]: Child member operator. E.g.$.store.book..: Recursive descent lookup. Searches all fields recursively. E.g.$..pricereturns all values associated with the keyprice.*: Wildcard. Matches all elements in an object or array. E.g.$.store.book[*].author[0, 1]: Array index or indexes slice selection.
How to Query JSON
- Load Sample: Click Load Store Sample. This sets up a deep bookshop dataset.
- Enter Query: Try entering
$..priceinside the JSONPath input. - Run: Click Run Query. The engine traverses the structures and returns all match values in the right panel.
- Export: Copy the array outputs or clear fields to query a new configuration.
Query Example
JSON Bookshop Input:
{
"store": {
"book": [
{"title": "Saying Yes", "price": 8.95},
{"title": "Code Clean", "price": 12.99}
]
}
}
Expression:
$..title
Query Output:
[ "Saying Yes", "Code Clean" ]
