JSONPath Query Tool
Extract data from JSON using path expressions
Example queries:
Quick Query Examples
Instant Results
Query large JSON documents instantly
100% Private
All processing happens in your browser
No Signup
Free tool, no registration required
JSONPath: XPath for JSON Data
JSONPath is a query language for JSON, analogous to XPath for XML. It provides a concise syntax for navigating and extracting values from JSON structures without writing imperative code. A JSONPath expression like $.store.book[*].author extracts all author fields from all books in a store object — in a single readable expression, no loops required.
JSONPath Syntax
$ is the root object. Dot notation ($.key) accesses a property. Bracket notation ($["key"]) is equivalent and handles keys with special characters. Array indexing ($[0]) accesses elements by position. The wildcard * matches all properties or elements. The recursive descent operator .. searches all descendants. Array slices ($[1:3]) return a range. Filter expressions ($[?(@.price < 10)]) select elements matching a condition.
Common Use Cases
API testing: extracting specific fields from API responses to assert on in test suites (tools like Postman and REST Assured support JSONPath natively). Data transformation: selecting a subset of fields from a large payload before forwarding to another system. Configuration queries: extracting values from complex nested config files. Log analysis: filtering structured log entries by field values. JSONPath is part of several IETF standards (RFC 9535) and is increasingly supported in databases — PostgreSQL, MySQL, and SQL Server all support JSONPath queries on JSON columns.
How to Use This Tool
Paste your JSON in the input area and enter a JSONPath expression. The matching values are extracted and displayed. Use the syntax examples provided to build your query — the recursive descent and filter operators are particularly powerful for exploring unknown JSON structures.