The Util Box

JSONPath Tester

Free online jsonpath tester for developers. Evaluate JSONPath expressions. Fast and private.

Result
Paste JSON and enter a path

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/json-path-tester" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free JSONPath Tester tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/json-path-tester -->
<a href="https://www.theutilbox.org/tools/json-path-tester">JSONPath Tester by The Util Box</a>

Frequently Asked Questions about JSONPath Tester

JSON Path Tester — Evaluate a JSONPath Expression

This JSON Path tester evaluates a JSONPath expression against a JSON document and prints the value the expression resolves to. JSONPath is the notation commonly used to point at one piece of a JSON structure — the idea is XPath for JSON — so this tool is a quick way to confirm an expression selects what you expect before you put it into code.

Paste the document into the text area, type the expression into the JSONPath box (it starts at the root, $), and the result appears immediately. The input is parsed first, so a malformed document produces a parse error rather than a misleading answer.

Expressions It Supports

The evaluator is deliberately simple. It walks the document one step at a time, splitting the expression on dots and on numeric array subscripts:

  • Root — $ selects the whole document.
  • Property access — $.store.book selects the book property of store.
  • Array index — $.store.book[0] selects the first element of an array.
  • Chained paths — any combination of the above, for example $.store.book[0].title.

It does not implement recursive descent (..), wildcards (*), filter or predicate expressions ([?()]), unions or slices. Those appear in larger JSONPath specifications; this tool covers the everyday "point at one value" case, and an expression using an unsupported construct usually fails to resolve. One exception is worth knowing: recursive descent is not detected at all. A .. collapses into an ordinary dot, so $..book behaves exactly like $.book and can return a plausible but wrong answer rather than an error.

What You Get Back

The result panel prints the selected value as formatted JSON — strings, numbers, booleans and nested objects or arrays all come back pretty-printed. If the path misses at the final segment the panel shows undefined. If it runs off the end earlier than that — stepping onto null or a missing key partway through — it shows null, and a path that lands on a real null value shows null too. A copy button lets you lift the result straight out.

Common Use Cases

  • Checking a path before coding it — confirm $.data.items[0].id resolves before wiring it into an application.
  • Inspecting API responses — pull one field out of a large nested payload.
  • Verifying key names — find out what a payload calls a field without scrolling through the whole document.

Related JSON Tools