Skip to content
Tresna

JSONPath Tester

Test JSONPath expressions against your JSON and see matching values instantly.

jsonpath

No matches

Waiting for JSON$.store.book[*].title0 chars
Example

How to use this tool

JSONPath is a query language for JSON, similar to XPath for XML. Write an expression, paste your JSON, and see every matching value with its path.

  1. 1Paste your JSON document in the left panel
  2. 2Write a JSONPath expression starting with $
  3. 3See matching values and their paths instantly

Syntax

ExpressionDescription
$Root element
$.keyChild access by key
$['key']Bracket notation
$[0]Array index
$[*]All array elements (wildcard)
$[0:2]Array slice
$..keyRecursive descent (search at any depth)
$[?(@.price < 10)]Filter expression

Examples

Get all book titles

$.store.book[*].title

Find books under $10

$.store.book[?(@.price < 10)].title

Get all authors anywhere in the document

$..author

When to use JSONPath

JSONPath is useful when you need to extract specific values from a large or deeply nested JSON document. It is commonly used in API testing, data extraction, and configuration management. If you work with APIs that return complex JSON responses, JSONPath helps you quickly find the values you need without writing custom parsing code.

Frequently asked questions

What is the difference between JSONPath and JSON Pointer?
JSONPath is a query language that can match multiple values using wildcards and filters. JSON Pointer (RFC 6901) is a simpler syntax that points to exactly one value. JSONPath is more flexible for exploration; JSON Pointer is more precise for referencing.
Does this tool support the full JSONPath specification?
This tool supports the common subset: child access, bracket notation, wildcards, slices, recursive descent, and basic filter expressions. Advanced features like script expressions and union operators are not supported.
Is my JSON uploaded anywhere?
No. Everything runs in your browser. Your JSON and expressions are never sent to any server.