Free JSONPath Tester & Evaluator

Test JSONPath expressions online for free. Supports wildcards, recursive descent, slices and filters like [?(@.price < 10)], and shows matched values and paths.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideJSONPath Syntax Explained With Practical Filter Examples →

About the JSONPath Tester tool

JSONPath is a query language for picking values out of JSON, much like XPath for XML. It is used in API testing tools, Kubernetes kubectl output, AWS Step Functions, log processors and many integration platforms. Getting a filter expression right by trial and error inside those tools is slow, so this tester lets you run expressions against your own JSON instantly.

The evaluator is built into the page and supports the widely used Goessner syntax: the root $, child access with dots or brackets, quoted names, array indexes including negative ones like [-1], unions such as [0,2] or ['a','b'], slices like [1:5:2], the * wildcard and recursive descent with ... Filters work on array items and object values with [?(…)] or [?…], using == != < <= > >= comparisons, =~ with a /regex/, &&, ||, !, parentheses, existence checks like [?(@.isbn)], references to the root with $, and length() or .length.

Results update as you type, with a match count and a choice to show the matched values, their normalised paths such as $.store.book[0], or both. Script expressions like [(@.length-1)] are not executed, because running arbitrary code would be unsafe; use [-1] instead.

How to use JSONPath Tester

  1. Paste JSON into “JSON document” or click “Load sample” for the classic bookstore example.
  2. Type an expression in “JSONPath expression” or click one of the example chips.
  3. Read the match count and results; errors in the expression show the character position.
  4. Use “Show” to switch between values, paths, or paths + values, then click “Copy”.

Features

Filters and regex

Supports [?(@.price < 10)], logical operators and =~ /pattern/i matching.

Recursive descent

Use $..author to find a key at any depth.

Slices and negative indexes

Python-style [start:end:step] slices and [-1] for the last item.

Normalised paths

See exactly where each match lives, with bracket notation for keys that need quoting.

Safe evaluation

Expressions are parsed, never passed to eval, so pasted input cannot run code.

When to use it

  • Build assertions for Postman, Karate or REST Assured API tests.
  • Write kubectl -o jsonpath queries against a saved kubectl get -o json output.
  • Test data mappings for Zapier, Make or AWS Step Functions.
  • Extract all prices or IDs from a large API response.

Frequently asked questions

What does $.. mean in JSONPath?

Two dots perform recursive descent: $..price finds every price key at any depth, not just directly under the root.

How do I filter an array in JSONPath?

Use a filter expression in brackets, for example $.items[?(@.stock > 0)]. The @ symbol refers to the current item being tested.

How do I get the last element of an array?

Use a negative index: $.items[-1]. The older script form [(@.length-1)] is not supported here because it would require running code.

Is this the same as RFC 9535 JSONPath?

It covers the common syntax shared by RFC 9535 and the original Goessner proposal, including filters and slices. Some implementation-specific functions like match() or search() are not included; use =~ with a regex instead.

Is JSONPath the same as jq?

No. jq is a separate, more powerful command-line language. JSONPath is simpler and is what many APIs and tools accept as a path expression.

Related tools