Skip to content
Json Works

Runs in your browser · nothing is uploaded

JSONPath Tester & Online Evaluator

Test JSONPath expressions against your JSON with live results, exact match paths and a cheat sheet. Filters run in a safe sandbox, entirely in your browser.

JSON

Empty

Results

—

JSONPath cheat sheet

  • $ the root · @ the current item inside a filter
  • $.a.b or $['a']['b'] child access
  • $..name every name, at any depth
  • $.items[*] every item · $.items[0] first · $.items[-1] last
  • $.items[0:3] slice · $.items[0,2] union
  • $.items[?(@.price > 10 && @.stock)] filter

What JSONPath is for

JSONPath is a query language for JSON, similar to what XPath is for XML. It lets you pick out values from a large document with one short expression instead of writing loops. It is used in API testing tools, workflow engines, log processors and configuration systems, and each of them supports a slightly different dialect, so it helps to try an expression against real data before relying on it.

Examples

Given a document with a store.books array:

  • $.store.books[*].title returns the title of every book.
  • $.store.books[?(@.price < 10)] returns the books cheaper than 10.
  • $..author finds every author value at any depth.
  • $.store.books[-1] returns the last book.

Troubleshooting an expression

  • No matches usually means a key is misspelled or a level is missing; build the path one step at a time.
  • Filters compare types, so "10" and 10 are different values.
  • Property names with spaces or dashes need bracket notation, such as $['first-name'].

For a longer reference with more patterns, see the JSONPath cheat sheet and examples. If you are not sure of the structure, explore it in the JSON Formatter tree view first.

How to use JSONPath Tester

  1. Paste your JSON on the left.
  2. Type a JSONPath such as $.data[*].id, or click an example.
  3. Switch between Values and Paths to see what matched and where.
  4. Copy the results or a single path.

Private by design

JSONPath Tester runs entirely in your browser. Your data is parsed and converted on your device with JavaScript — it is never sent to a server, logged or used for analytics. Recent inputs are kept in your browser’s own storage so you can come back to them, and they disappear when you clear cookies and site data (or press Clear history). You can verify this in your browser’s network tab.

Frequently asked questions

Which JSONPath syntax is supported?

The standard operators: $ root, . and [] child access, .. recursive descent, * wildcard, [0], [-1], [0:3] slices, [0,2] unions and [?(@.price < 10)] filter expressions with comparison and logical operators.

Is it safe to run filter expressions?

Yes. Filters run in a sandboxed expression evaluator — arbitrary JavaScript is not executed — and everything stays inside your browser tab.

Can I see where each match came from?

Yes. Switch to the Paths view to see the exact path of every match next to its value, ready to copy into code or a Postman test.

Does JSONPath work in Postman tests?

Postman supports JSONPath-like access through scripts. Use this tool to work out the expression, then copy the path of the match you want.

Found a bug or have an idea for this tool? Send feedback.

Guides for JSONPath Tester

More JSON tools

History

Saved only in this browser (IndexedDB). It never leaves your device and disappears when you clear cookies and site data.