Skip to content
DevToolKit

JSONPath Expression Tester

Test and debug JSONPath expressions in real-time. Supports JSONPath-Plus, custom variables, multiple output modes (Path, Value, Pointer), and safe evaluation. 100% private.

Query Utility

JSONPath Engine

Workbench Settings

Wrap result in Array

Syntax Cheat Sheet

$The root object or array
.Child operator
..Recursive descent
*Wildcard (all objects/elements)
[n]Array index
[start:end]Array slice
[?(@.price < 10)]Filter expression
JSON Context
Match Results
Was this tool helpful?

How to Use

The JSONPath Expression Tester is a powerful debugging tool for crafting and validating complex data queries.

How to use this tool

  1. Load JSON: Paste your source JSON object or array into the left editor.
  2. Write Expression: Enter your query in the JSONPath Expression field. Use the provided syntax cheat sheet for quick reference.
  3. Choose Format: Select Values to see matched data, Paths for dot-notation locations, or Pointers for RFC 6901 pointers.
  4. Safe Eval: The tool uses a secure, non-eval execution engine, making it safe to test queries from untrusted sources.
  5. Iterate: Results update in real-time as you type, allowing for rapid trial-and-error debugging of complex filters.

About This Tool

The Power of JSONPath

JSONPath is to JSON what XPath is to XML. it provides a standardized way to slice, dice, and filter deep data structures using a concise syntax. Whether you are building automation workflows, extracting data from API responses, or configuring dynamic systems, JSONPath is an essential skill for modern developers.

Our tester supports the JSONPath-Plus dialect, which extends the original specification with advanced features like parent selectors, regex filters, and improved array slicing.

Why Use This Tool

Local & Secure Debugging

Testing queries against production data usually requires pasting sensitive payloads into online tools. DevToolKit ensures that your data never leaves your device—all processing happens entirely in your browser's local memory, ensuring 100% privacy for your proprietary information.

FAQ

What is JSONPath?
JSONPath is a query language for JSON documents, analogous to XPath for XML. It lets you select specific data from complex JSON structures using expressions like $.store.book[*].author.
What is the difference between JSONPath and jq?
JSONPath is a query standard implemented across multiple languages (Java, Python, JavaScript). jq is a command-line tool with its own more powerful but different language. JSONPath is more portable across platforms.
What output modes are supported?
Three modes: Value (selected values), Path (JSONPath paths of each result), and Pointer (JSON Pointer RFC 6901 pointers for each result). Each mode is useful for different development contexts.