JSONPath Evaluator & Tester

Evaluate JSONPath expressions against your JSON data with real-time results and match highlighting.

About This Tool

The JSONPath Evaluator is a free, browser-based tool that lets developers query and extract data from JSON documents using JSONPath expressions. JSONPath is a query language for JSON, similar to how XPath works for XML. It provides a concise syntax for navigating deeply nested structures and selecting specific values without writing custom code.

This tool evaluates expressions in real time as you type, showing matching results instantly along with their full paths within the JSON document. Each match is displayed with syntax highlighting and type information, making it easy to verify that your query returns the expected data. The built-in JSONPath engine supports root access ($), dot notation (.key), bracket notation (['key']), array indexing ([0]), wildcards ([*]), recursive descent (..key), and array slicing ( [0:3]).

All processing happens entirely in your browser. Your JSON data is never sent to any server, making this tool safe for sensitive payloads like API responses, configuration files, and internal data structures. There is no signup required, no rate limiting, and no data collection.

Whether you are building API integrations, debugging webhook payloads, writing data transformation scripts, or learning JSONPath syntax, this evaluator gives you immediate feedback. The common queries sidebar provides one-click access to frequently used expressions, and the sample data button lets you explore JSONPath features with a pre-loaded example document covering objects, arrays, and nested structures.

How to Use

  1. Paste your JSON data into the JSON Data textarea on the left panel, or click Sample to load example data.
  2. Enter a JSONPath expression in the JSONPath Query field. Expressions must start with $ (the root).
  3. Results appear instantly in the right panel as you type, showing each match with its full path and value.
  4. Click any of the Common Queries buttons to quickly insert frequently used expressions.
  5. Use the Copy button to copy all matched results to your clipboard, or press Ctrl+Shift+C.
  6. Click Clear to reset both the JSON input and the query field.

Popular JSONPath Examples

View all JSONPath examples →

FAQ

What is JSONPath?

JSONPath is a query language for JSON data, originally proposed by Stefan Goessner. It allows you to navigate and extract values from JSON documents using a path expression syntax similar to XPath for XML. Common operations include selecting specific keys, iterating over arrays, and performing recursive searches through nested structures.

Is my data safe?

Yes. All JSON parsing and JSONPath evaluation happens entirely in your browser using JavaScript. No data is transmitted to any server. You can safely use this tool with sensitive data like API keys, authentication tokens, and internal configuration files.

What JSONPath features are supported?

This tool supports the core JSONPath syntax: root access ($), dot notation (.key), bracket notation (['key']), numeric array indexing ([0]), wildcard selection ([*]), recursive descent (..key), and array slicing ([0:3]). Filter expressions and script expressions are not currently supported.

What does recursive descent (..) do?

The recursive descent operator (..) searches all levels of the JSON structure for a matching key. For example, $..name returns every value associated with a key called "name" regardless of how deeply it is nested. This is useful when you know the field name but not its exact location in the hierarchy.

How does array slicing work?

Array slicing uses the syntax [start:end] where start is the inclusive beginning index and end is the exclusive ending index. For example, $.items[0:3] returns the first three elements (indices 0, 1, and 2). Negative indices count from the end of the array.

Can I use this tool with large JSON documents?

Yes. The evaluator works well with JSON documents up to several megabytes. However, very large documents combined with broad queries (like recursive descent with wildcards) may result in slower evaluation depending on your device's processing power.

What keyboard shortcuts are available?

Press Ctrl+Shift+C to copy the query results to your clipboard. All standard text editing shortcuts work within the input fields.

Related Tools