JSONPath Evaluator

Queries JSON with a JSONPath expression and shows the matches.

The JSONPath Evaluator lets you query JSON with a JSONPath expression and instantly see the matching values. Paste your JSON, enter a path like $.store.book[*].author, and the tool returns every match formatted as pretty-printed JSON. It's handy for exploring API responses, filtering nested data, and testing JSONPath expressions before using them in code.

Common uses

  • Pull a specific nested field out of a large API response without manually scanning the JSON
  • Test and refine a JSONPath expression before embedding it in application code
  • Select all items from an array with a wildcard, e.g. $.items[*].id
  • Filter elements by condition using JSONPath filter syntax, e.g. $..book[?(@.price < 10)]
  • Explore the structure of unfamiliar JSON by querying different paths interactively
  • Extract matching values to copy into tests, fixtures, or documentation

FAQ

Is my data sent to a server?

No. The evaluator runs entirely in your browser using the jsonpath-plus library. Your JSON is parsed and queried locally, and nothing is uploaded or stored on any server.

What JSONPath syntax is supported?

It uses the jsonpath-plus library, which supports standard JSONPath features including the root $, child and recursive descent (.. ), wildcards [*], array slices, and filter expressions like [?(@.price < 10)].

What does the result look like?

Matches are collected into an array and returned as pretty-printed JSON with two-space indentation. If a query matches nothing, you get an empty array.

Why do I get an error when I run a query?

The input must be valid JSON; the tool parses it first with JSON.parse, so malformed JSON will throw a parse error. Make sure the JSON is well-formed before evaluating a path.

What is the default query?

The default path is $, which selects the root and returns the entire JSON document wrapped in an array. Replace it with your own expression to narrow the results.

Related tools

  • JSON Escape / Unescape
  • JSON Flatten
  • JSON Formatter
  • JSON Merge
  • JSON Minify
  • JSON Patch (RFC 6902)
  • JSON Repair
  • JSON Sort Keys