Evaluate JSONPath

Maximum size: 1 MB. Comments are ignored.
Example Expressions
Click an example to put it in the expression box. The examples work with the sample bookstore JSON.
Actions
Load Sample

Online JSONPath Evaluator and Tester

Write a JSONPath expression, run it against your JSON and see exactly which values it selects, together with the full path of every match.

No installation or sign-up required. It works right in your browser.

What is JSONPath?

JSONPath is a query language for JSON, much like XPath is for XML. It lets you navigate a JSON document and select values with a compact path syntax that starts at the root ($).

JSONPath is widely used in API testing tools, Kubernetes (kubectl -o jsonpath), log processing and configuration tooling. This tool helps you build and debug expressions before using them in your code.

Key Features

  • Full JSONPath syntax: wildcards, recursive descent, array slices, unions and filter expressions.
  • Match paths: see the exact path of every matched value in the document.
  • Pretty-printed output: results are returned as a formatted JSON array that you can copy with one click.
  • Clear error messages: invalid JSON and invalid expressions are reported separately, with details.
  • Ready-made examples: start from a sample document and one-click example expressions.

How to Use

  1. Paste your JSON: add the JSON document you want to query to the input box.
  2. Write an expression: type a JSONPath expression that starts with $, or click one of the examples.
  3. Evaluate: click Evaluate (or press Enter in the expression box) to run the query.
  4. Inspect and copy: review the match count and the matched paths, then copy the resulting JSON array.

JSONPath Syntax Cheat Sheet

$The root object or array
@The current element inside a filter
.name / ['name']Child property by name
..Recursive descent: searches all levels
*Wildcard: all properties or array items
[0] / [0,1]Array index or a union of indexes
[start:end]Array slice (negative indexes count from the end)
[?(...)]Filter expression, e.g. ?(@.price < 10) or ?(@.author =~ /regex/i)

Frequently Asked Questions

Which JSONPath implementation does this tool use?

Expressions are evaluated with Json.NET (Newtonsoft.Json), the most widely used JSON library for .NET. Its syntax follows the original JSONPath proposal by Stefan Goessner, including filters with comparison operators, && and ||, and regular expression matching with =~.

Why does my expression return no matches?

Property names are case-sensitive and must match the JSON exactly. Make sure the expression starts with $ and that filters compare values of the right type, for example numbers without quotes and strings in single quotes: ?(@.category == 'fiction').

Are there any limits?

The JSON input can be up to 1 MB with a maximum nesting depth of 64 levels. If an expression matches more than 1000 values, only the first 1000 are shown.