JSONPath Tester & Query Evaluator
Test and evaluate JSONPath expressions against JSON documents online. Extract data, query arrays, and debug JSONPath queries in real time.
How JSONPath Tester Works
- Executes standard JSONPath query evaluation using JSONPath-Plus.
- Supports root ($), recursive descent (..), wildcards (*), array slices ([0:2]), and filters ([?(@.price < 10)]).
- Outputs matching nodes as a clean JSON array with match count.
Example Input & Output
Evaluates the JSONPath query $.store.book[*].author against the bookstore document, extracting an array of all author names.
{
"store": {
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
},
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
}
]
}
}[ "Nigel Rees", "Evelyn Waugh", "Herman Melville" ]
Common Use Cases
Data Extraction
Query specific properties from massive nested API payloads without writing custom code.
Test Automation
Test JSONPath assertion queries used in Postman, RestAssured, or Cypress tests.
Key Specifications & Gotchas
Root Selector
Expressions should begin with $ (e.g. $.store.book[0]).
Frequently Asked Questions
What is JSONPath?
JSONPath is a query expression language for JSON, similar to XPath for XML, used to select and extract values from JSON structures.
Can I filter items by value in JSONPath?
Yes! Use filter expressions like $.store.book[?(@.price < 10)] to match objects meeting specific criteria.
Related JSON & Data Format Tools
View all 41 tools →JSON Viewer
Explore and navigate nested JSON documents with an interactive tree visualizer. Expand, collapse, search, and inspect complex JSON objects online.
XPath Tester
Test and evaluate XPath expressions against XML documents online. Extract nodes, attributes, and text values with real-time XPath debugging.
JSON Formatter
Format, beautify, and pretty print JSON online with customizable indentation, key sorting, and instant syntax validation. 100% private in-browser tool.