Developer

JSONPath Tester

Run a JSONPath expression against your own JSON and see every match with its full path. Supports dot and bracket notation, wildcards, array indexes, slices and recursive descent. Runs in your browser.

Last reviewed by the Radiatus Cloud team

Supported: $ · .key · ["key"] · [0] · [-1] · [*] · [1:3] · ..key. Filter expressions are not evaluated.

Results appear here.

Need this built for your product?

We design, build & host secure software & APIs.

Talk to an engineer

What JSONPath actually does

JSONPath is to JSON roughly what XPath is to XML: a compact string that selects a set of nodes from a document. The confusion most people hit is that JSONPath was never formally standardised until RFC 9535 arrived, so every library grew its own dialect. Filters, script expressions and union syntax differ between the Java, Python, Go and JavaScript implementations, which is why an expression copied from a Stack Overflow answer often returns nothing in your own stack.

The subset this tool evaluates

This tester implements the portion that behaves identically across essentially every implementation: the root selector, dot notation, quoted bracket notation for keys containing spaces or dots, numeric array indexes including negative indexes counted from the end, wildcards over both objects and arrays, array slices, and recursive descent. It deliberately does not evaluate filter or script expressions, because those are the part that varies most between libraries and a result that only works in one of them is worse than no result at all.

Reading the output

Every match is shown with its normalised path as well as its value, so you can see exactly which node produced each result. That matters when a recursive descent matches the same key at several depths and you need to know which branch you are actually reading in production.

Related tools

  • JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
  • JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
  • Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
  • HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.

Frequently Asked Questions

Which JSONPath dialect does this follow?

It follows the common core shared by Goessner-style implementations and RFC 9535: $, .key, ["key"], [n], [-n], [*], [start:end] and ..key. Filter expressions such as [?(@.price<10)] are not evaluated, because their semantics differ between libraries.

Why does my expression return no matches?

The usual causes are a key that contains a dot or hyphen and therefore needs bracket notation, an index applied to an object rather than an array, or a case mismatch in a key name. The tool reports a parse error separately from an empty result set so you can tell the two apart.

Can I use negative array indexes?

Yes. [-1] selects the last element and [-2] the second to last. Note that not every server-side library supports this, so verify before relying on it in production code.

Is my JSON sent anywhere?

No. Parsing and evaluation happen entirely in your browser with the native JSON parser. Nothing leaves the page, which matters because the JSON you most often need to query is an API response containing tokens or personal data.

What does the path column show?

The normalised path to each match in bracket notation, for example $["orders"][0]["id"]. That form is unambiguous and can be pasted back into the expression box to select a single node.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Paste JSON, type a JSONPath expression such as $..items[*].id, then press Evaluate.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.