JSONPath Tester
Real-time JSONPath expression evaluation.
Highlight matches in your JSON data instantly.
🔒JSON data is never sent to any server.※ Loads jsonpath-plus library from CDN.
About
A developer tool for evaluating JSONPath expressions against JSON data in real time. Ideal for extracting specific fields from API responses and exploring data structures. Unlike the existing json-formatter (formatting & YAML conversion), this tool is purpose-built for evaluating and testing JSONPath expressions. Powered by the jsonpath-plus library (MIT, CDN).
How to Use
Paste JSON Data
Paste your JSON into the left panel. Use "Load Sample JSON" to try a demo dataset.
Enter a JSONPath Expression
Type a JSONPath expression in the input field. Use quick buttons to try common patterns.
Review & Copy Results
Matched values appear in the right panel. Click Copy Results to use them.
Glossary
- JSONPath
- A query language for JSON data, similar to XPath for XML. Expressions like $.store.book[0].title navigate through the JSON hierarchy using dot notation.
- Root ($)
- The starting point of any JSONPath expression, representing the entire JSON document.
- Wildcard (*)
- Matches any element. $.store.* returns all children of the store object.
- Recursive Descent (..)
- Searches all descendant nodes regardless of depth. $..author returns all author fields at any nesting level.
- Filter Expression (?())
- Filters elements by condition. $.store.book[?(@.price < 10)] returns books with price below 10.
- Bracket Notation
- Array index or key access. $.book[0] (first), $.book[-1] (last).
- Slice (0:2)
- Range selection from an array. $.book[0:2] returns elements at index 0 and 1.
- jsonpath-plus
- An RFC 9535-compliant JavaScript library for evaluating JSONPath. MIT license, loaded via CDN.
FAQ
- Q.Is my JSON data sent to a server?
- No. All evaluation is performed locally using the jsonpath-plus library in your browser. Even confidential JSON is safe to use.
- Q.Which JSONPath syntax is supported?
- jsonpath-plus follows RFC 9535 (formerly the Stefan Goessner spec). Wildcards, recursive descent, filter expressions, and slices are all supported.
- Q.How is this different from json-formatter?
- json-formatter formats and validates JSON and converts to YAML. This tool is a separate tool specifically for evaluating JSONPath expressions.
- Q.Are there performance limits?
- Performance depends on browser memory. Very large JSON documents (multi-MB) may be slow. It is recommended to paste only the relevant portion of large payloads.
- Q.Does it require an internet connection?
- Yes, to load the jsonpath-plus library from the jsDelivr CDN. Offline use is not supported.
Use Cases
API Response Field Extraction
Quickly test JSONPath expressions to extract specific fields from REST API JSON responses.
Learning JSONPath Syntax
Interactively learn the JSONPath spec by trying built-in examples and observing results.
Creating Test Data Extraction Paths
Pre-validate JSONPath assertions before adding them to Postman or API test suites.
Validating API Spec JSONPath Examples
Verify that JSONPath expressions written in API documentation actually work as described.
Related Tools
Web & Developer ToolsView allYAML ↔ JSON Converter
Convert between YAML and JSON with real-time validation
File Size Calculator
Calculate sizes based on resolution and capacity
Password Strength Checker
Real-time security diagnosis
Password Generator
Create secure random passwords
ZIP Password Tool
Create or unlock password-protected ZIP files
Contrast Checker (WCAG)
Check color contrast against WCAG & auto-suggest passing colors
Test Dummy Data Generator
Generate realistic Japanese test data in CSV/JSON/SQL
SQL Formatter
Format and highlight SQL queries online
JWT Decoder
Decode JWT tokens locally and safely in your browser