JSONPath Tester

🔒 Processed 100% in your browser — nothing is uploaded

About this tool

JSONPath is the query language for JSON — the counterpart of XPath for XML — and this tester lets you develop expressions interactively. Paste a JSON document, type an expression such as $.store.book[0].title, and every match appears instantly with its full path and value, updating live as you type. The classic bookstore example is preloaded so you can experiment right away. The hand-written parser covers the expressions you actually meet in documentation and configuration: dot and bracket child access, wildcards, array indices including negative ones, unions of names or indices, array slices like [1:3], recursive descent with the double-dot operator to find a key anywhere in the tree, and filter expressions such as [?(@.price < 10)] with equality, inequality, numeric comparison, existence checks and regex matching. Use it to build the path you need for a jq pipeline, a Kubernetes or AWS CLI query flag, a Postman test or an automation workflow, then copy all matched values with one click. Everything runs in your browser with no external library, so the behaviour is transparent and your data never leaves your machine.

How to use JSONPath Tester

  1. Paste a JSON document into the left area (the bookstore sample is preloaded for experimenting).
  2. Type a JSONPath expression such as $.store.book[?(@.price < 10)].title into the expression field.
  3. Read the matches — each result shows its full path and value, updating live as you type.
  4. Press Copy matched values to grab every result, one per line.

Frequently asked questions

Which JSONPath syntax is supported?

Root $, dot and bracket child access, wildcards, array indices (including negative), unions like [0,2] or ['a','b'], slices like [1:3] with optional step, recursive descent with .., and filters [?(...)] with ==, !=, <, <=, >, >=, regex =~ and existence checks.

How do I find a key anywhere in the document?

Use recursive descent: $..author returns every 'author' value at any depth, and $..price returns all prices. Combine with filters, e.g. $..book[?(@.price < 10)].

Why does my filter return nothing?

Filters apply to the elements of an array (or values of an object). Make sure the operand before the filter is an array, the @ path exists on each element, and string literals use matching quotes, e.g. [?(@.category == 'fiction')].

Is my JSON sent to a server?

No. The parser is hand-written JavaScript that runs entirely in your browser. Nothing is uploaded or logged.