digtools
🔎
jsonpath tester,

JSONPath Tester

Real-time JSONPath expression evaluation.Highlight matches in your JSON data instantly.

Real-Time Evaluation
See JSONPath results as you type
🎯
Match Results
View all matched values in formatted JSON
🔒
Fully Local
JSON data is never sent to any server

🔒JSON data is never sent to any server.※ Loads jsonpath-plus library from CDN.

about,

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,

How to Use

STEP 1

Paste JSON Data

Paste your JSON into the left panel. Use "Load Sample JSON" to try a demo dataset.

STEP 2

Enter a JSONPath Expression

Type a JSONPath expression in the input field. Use quick buttons to try common patterns.

STEP 3

Review & Copy Results

Matched values appear in the right panel. Click Copy Results to use them.

glossary,

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,

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,

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.

Disclaimer

The tools provided on this site are completely free to use, but please use them at your own risk. We make no guarantees regarding the accuracy, completeness, or safety of any calculation results, conversion results, or generated data. Please be aware that the operator assumes no responsibility for any damages or troubles caused by the use of these tools. Most tools process files and calculations locally in your browser, meaning your inputted data is neither sent to nor stored on our servers.