JSONPath Tester Online

Write JSONPath expressions and instantly query JSON data in your browser.

JSON INPUT
RESULTS4 matches

What Is a JSONPath Tester?

A JSONPath Tester lets you write JSONPath expressions and instantly see which values they match in a JSON document. JSONPath is a query language for JSON — similar to XPath for XML — that lets you navigate and extract data using a concise path syntax. It is widely used with REST APIs, configuration files, and data transformation pipelines. This tool evaluates your path expression in real time and shows all matching results as a JSON array.

How to Use JSONPath Tester

  1. Paste your JSON into the left panel, or click Load Sample to use the built-in example.
  2. Type a JSONPath expression in the path field (e.g. $.store.books[*].title).
  3. Matching results appear instantly in the right panel as a JSON array.
  4. Use the quick-example buttons to try common patterns.
  5. Click Copy to copy the results to clipboard.

JSONPath Syntax Reference

  • $ — root element (required at the start of every path)
  • .key — child element by name
  • ..key — recursive descent: find key anywhere in the tree
  • [n] — array element by index (0-based; negative indexes count from end)
  • [*] — all array elements or all object values
  • ['key'] — bracket notation for keys with special characters

FAQ

What is JSONPath?

JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract specific values from a JSON document using path expressions like $.store.books[*].title.

What JSONPath syntax is supported?

This tool supports: $ (root), . (child), .. (recursive descent), * (wildcard), [n] (array index), [*] (array wildcard), and ['key'] bracket notation.

How do I select all items in an array?

Use [*] to select all array elements. For example, $.store.books[*] returns all books, and $.store.books[*].title returns just the titles.

Is my JSON data sent to a server?

No. All processing happens entirely in your browser. Your JSON never leaves your device.