JSONPath Tester
Test JSONPath expressions against your JSON data. Extract and filter with live results.
JSONPath Expression
Example Queries
JSON Data
Results
JSONPath Syntax Reference
$Root object
.propertyChild property
['property']Child property (bracket notation)
..Recursive descent
*Wildcard (all children)
[n]Array index
[start:end]Array slice
[0,1,2]Multiple indices
[?(@.price<10)]Filter expression
What is JSONPath?
JSONPath is a query language for JSON data, analogous to XPath for XML. It lets you navigate and extract values from JSON documents using path expressions. Originally proposed by Stefan Goessner in 2007, JSONPath is widely used in REST APIs, testing frameworks, and data pipelines.
A JSONPath expression always starts with $ (the root object), followed by child accessors, array indices, wildcards, or filter expressions. For example, $.users[*].email extracts all email addresses from a users array.
How to Use
- Paste your JSON data in the left panel
- Enter a JSONPath expression in the search box (e.g., $.store.book[*])
- Results update automatically as you type
- Click example queries to try common patterns
- Copy the results or share the query with your team
Common Patterns
$.users[*].nameGet all user names from an array
$..idFind all id values at any depth
$.items[0:5]Get first 5 items from array
$.products[?(@.inStock==true)]Filter products that are in stock
Features
- ✓Real-time query results
- ✓Full JSONPath syntax support
- ✓Filter expressions
- ✓Array slicing
- ✓Recursive descent
- ✓Path display for each result
- ✓Example queries included
- ✓Shareable results