Test a JSONPath expression

Paste a JSON response and a JSONPath expression and see every match with its normalised path. It supports the subset tests use most: dot and bracket names, wildcards, indexes including negative ones, slices, unions, recursive descent (..) and simple filters such as [?(@.price < 10)] — the expressions you would put in a Postman, REST Assured or Playwright assertion.

Paths that match nothing

An expression that matches zero nodes is not an error in JSONPath, and an assertion built on it can pass for the wrong reason. Check the match count here before relying on a path in a test.

Filters

A filter keeps the elements whose field compares true: ==, !=, <, <=, > and >= against a number, a quoted string, true, false or null, or just [?(@.field)] for "present and truthy". Strings compare exactly.

Dialects differ

JSONPath was standardised as RFC 9535 in 2024, years after the libraries tests use. Most agree on the subset here; filter syntax and the result of recursive descent order are where they drift.

Other tools

All tools · Getting started guide · All 55 mock REST APIs

Last updated