JSON Tools

JSONPath Tester

Test JSONPath queries against JSON instantly. Paste JSON, enter a JSONPath expression, and inspect matching values and paths.

JSONPath testing guide

Paste JSON and enter a JSONPath expression to begin.

JSON input

Objects, arrays, primitives, null, nested values, and Unicode are supported.

Processed locally in your browser. Limit 5 MB Your input is processed in your browser and is not uploaded or sent to a server. Avoid pasting production secrets, access tokens, private keys, passwords, or sensitive customer data unless you understand the risk.

Start with $. Use dot notation, brackets, wildcards, recursive descent, indexes, slices, and safe filters.

JSONPath results

Matching values, absolute JSONPath paths, JSON Pointers, and combined metadata.

Ready to test JSONPath

Paste JSON, enter an expression, or load a sample. Valid small inputs are tested automatically after a short pause.

JSONPath options

No-evaluation mode blocks filters and script expressions. Library-safe mode uses the package's CSP-compatible interpreter and never enables native eval or Function.

JSONPath Testing Guide

Query JSON values and inspect exactly where they matched

Use JSONPath to explore API responses, logs, configuration files, test fixtures, automation data, and deeply nested JSON without sending the document to a server.

What is a JSONPath Tester?

A JSONPath Tester runs a query against JSON data and shows the matching values, absolute JSONPath result paths, and JSON Pointer-style locations.

How to test a JSONPath expression

Paste JSON, enter an expression, click Test JSONPath, review values, paths, and pointers, then copy or download the result.

Common JSONPath use cases

Query API responses, extract fields from logs, build test assertions, debug nested JSON, inspect large documents, test automation scripts, and learn JSONPath syntax.

Supported JSONPath examples

Use the root selector $, dot or bracket notation, wildcards, recursive descent, zero-based array indexes, slices, and filters through library-safe mode.

Values, paths, and pointers

Values are the matched data. Paths are normalized JSONPath locations such as $['store']['book'][0]. Pointers are RFC 6901-style locations such as /store/book/0.

JSONPath vs JSON Formatter

JSON Formatter makes a complete JSON document easier to read. JSONPath Tester queries one document and extracts only matching values.

JSONPath vs JSON Diff

JSON Diff compares two JSON values. JSONPath Tester searches inside one JSON value using an expression.

Privacy

JSON validation and JSONPath evaluation happen locally in your browser. Input, expressions, and results are not uploaded or included in analytics.

Tips and best practices

Start with $, remember zero-based indexes, use bracket notation for special keys, match exact casing, test filters carefully, and avoid pasting secrets or production customer data.

JSONPath Tester FAQ

Is this JSONPath Tester free?

Yes, it is free to use on DevCoreTools.

Does this tool upload my JSON?

No. JSONPath testing runs locally in your browser.

What is JSONPath used for?

JSONPath queries JSON data and extracts matching values from objects, arrays, and nested structures.

What does $ mean in JSONPath?

$ represents the root of the JSON document.

Are JSONPath array indexes zero-based?

Yes. JSONPath array indexes typically start at 0.

Can I test JSONPath filters?

Yes. Choose library-safe mode to use filters through the package's CSP-compatible interpreter. Native JavaScript evaluation remains disabled.

Why does my JSONPath return no matches?

Check property names, casing, array indexes, the root path, filters, and the selected safety mode.

Can I copy the matched values?

Yes. Copy values, paths, pointers, combined metadata, summaries, and warnings.

Does this tool validate JSON first?

Yes. Invalid JSON shows a friendly error before JSONPath evaluation.

What is the difference between JSONPath Tester and JSON Formatter?

JSON Formatter makes JSON easier to read. JSONPath Tester queries JSON and returns matching values.

What is the difference between JSONPath Tester and JSON Diff?

JSONPath Tester searches within one JSON document. JSON Diff compares two JSON documents.