JSON Path Tester
Test JSONPath expressions against JSON data. See matched results in real-time. Supports dot notation, recursive descent, wildcards, and filters.
What is JSON Path Tester?
JSONPath is a query language for JSON, similar to XPath for XML. It lets you navigate and extract specific values from complex JSON structures using expressions like $.store.book[0].title (first book title) or $..author (all authors at any depth). This tool evaluates JSONPath expressions against your JSON data entirely in the browser, showing matched results instantly.
How to Use JSON Path Tester
- 1
Enter your JSON
Paste or type your JSON data in the left panel. The tool validates JSON syntax in real-time and highlights errors. Click "Try Example" to load sample data.
- 2
Write a JSONPath expression
Enter a JSONPath expression in the top input field. All expressions start with $ (the root). Use dot notation for properties ($.store), brackets for arrays ($.book[0]), and two dots for recursive descent ($..price).
- 3
Click Run
Press the Run button or hit Enter. The tool evaluates the expression against your JSON and shows all matching values in the right panel.
- 4
Review matches
Each match is displayed with its index, type, and value. Objects and arrays are formatted as pretty-printed JSON. Click Copy to get all results as a JSON array.
- 5
Try example paths
Click the example path buttons below the input to quickly test common patterns. Each button fills in a different JSONPath expression.
Features
- Dot notation: $.store.book.title for nested property access
- Recursive descent: $..author finds "author" at any depth
- Wildcards: $.store.book[*].title matches all array items
- Array indexing: $.store.book[0] accesses specific elements
- Filter expressions: $[?(@.price<10)] for conditional matching
- Real-time JSON validation with error highlighting
- One-click example paths for quick testing
- 100% client-side -- your JSON data stays in your browser
Related Tools
JSON Formatter & Validator
Pretty-print and validate JSON with 2 / 4 space indentation.
JSON to CSV Converter
Convert JSON arrays to CSV format. Auto-detects columns, proper escaping, download as .csv.
CSV to JSON Converter
Convert CSV data to a JSON array of objects. Handles quoted fields and commas.
HTML Formatter & Minifier
Beautify messy HTML with proper indentation or minify it for production.
HTML Minifier
Minify HTML by stripping comments, collapsing whitespace. Shows size savings.
CSS Formatter & Minifier
Beautify CSS with proper indentation or minify it for production. Strips comments.