JSONPath Tester

Test JSONPath expressions against your JSON, live in the browser.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Test JSONPath without leaving your browser

JSONPath is a query language for pulling specific values out of a JSON document — the JSON equivalent of XPath for XML. Paste a document, type an expression, and instantly see which values it selects. It is useful for building API integrations, debugging config files, or learning how JSONPath traversal works.

How it works

The expression is evaluated left to right against your parsed JSON, starting from the root $. Each segment narrows the set of matches, and the final values are shown as a JSON array that updates as you type.

SyntaxMeaning
$the root document
.key / ["key"]a member by name
[0]an array element by index
[-1]last element (negative counts from the end)
[*]every element of an array or value of an object

Recursive descent (..) and filter expressions are not included.

Example

Given this JSON:

{ "store": { "books": [
  { "title": "A", "price": 5 },
  { "title": "B", "price": 8 }
] } }

the expression $.store.books[*].title matches both titles and returns:

["A", "B"]

$.store.books[-1].price returns [8]. All evaluation runs client-side — your JSON is never uploaded anywhere.

Ad placeholder (rectangle)