JSON Path Tester

Test a JSON path expression against a document and see what it selects.

Checking a path selects what you expect

A JSON path expression queries into a document to pull out values, and getting the expression right — especially with filters, wildcards and nested selections — takes trial and error. This runs your path against a JSON document and shows exactly what it matches, so you can refine the expression until it selects precisely the values you intend.

Paste your JSON and a path expression, and see the results.

Build the query incrementally

As with regex, the reliable way to write a path expression is to build it up against real data: start by selecting a top-level element, confirm it matches, then extend the path deeper or add a filter, checking each step. Seeing the matched values at every stage catches the mistakes — a wrong key, an off-by-one index, a filter that matches too much or nothing. It pairs with a path finder, which does the reverse by handing you the path to a value you click; this tests a path you have written to confirm it does the job.

Questions & answers

What does it show?

Exactly which values in the JSON your path expression matches, so you can confirm it selects what you intend.

How should I build a path expression?

Incrementally against real data — select a top-level element, confirm it, then extend deeper, checking the matches at each step.

Is my JSON uploaded?

No. The testing happens in your browser.

More Developer tools