Skip to content

JSON Path Tester

Test JSONPath expressions against JSON data instantly. Evaluate, debug, and validate JSONPath queries with live results and error highlighting.

Updated

What is the JSON Path Tester?

How it works

Examples

Extract all book authors

JSON:
{
  "store": {
    "book": [
      {"title": "Sayings of the Century", "author": "Nigel Rees", "price": 8.95},
      {"title": "Sword of Honour", "author": "Evelyn Waugh", "price": 12.99},
      {"title": "Moby Dick", "author": "Herman Melville", "price": 8.99}
    ],
    "bicycle": {"color": "red", "price": 19.95}
  }
}
Path: $.store.book[*].author
["Nigel Rees", "Evelyn Waugh", "Herman Melville"]

Get all prices

JSON:
{
  "store": {
    "book": [
      {"title": "Sayings of the Century", "author": "Nigel Rees", "price": 8.95},
      {"title": "Sword of Honour", "author": "Evelyn Waugh", "price": 12.99},
      {"title": "Moby Dick", "author": "Herman Melville", "price": 8.99}
    ],
    "bicycle": {"color": "red", "price": 19.95}
  }
}
Path: $..price
[8.95, 12.99, 8.99, 19.95]

Access a nested property

JSON:
{
  "store": {
    "book": [
      {"title": "Sayings of the Century", "author": "Nigel Rees", "price": 8.95},
      {"title": "Sword of Honour", "author": "Evelyn Waugh", "price": 12.99},
      {"title": "Moby Dick", "author": "Herman Melville", "price": 8.99}
    ],
    "bicycle": {"color": "red", "price": 19.95}
  }
}
Path: $.store.bicycle.color
["red"]

Frequently asked questions