JSON · LIVE

JSONPath Tester

Write a JSONPath expression and instantly query any JSON. Supports dot/bracket notation, wildcards, recursive descent, array slices and filter expressions.

JSON Input

Waiting for input

Result JSON

Results appear here

Load example

Syntax reference — click any expression to use it

What is JSONPath?

JSONPath is a query language for JSON, analogous to XPath for XML. It lets you extract specific values from a JSON document using a path expression — for example, $.store.book[*].title extracts all book titles from a store object. JSONPath is used in Kubernetes selectors, API testing tools, and data transformation pipelines.

This tool lets you test JSONPath expressions interactively against any JSON document, with live results as you type.

How to test a JSONPath expression online

  1. Paste your JSON document into the JSON panel.
  2. Enter a JSONPath expression in the Path field.
  3. The matched values appear instantly in the Results panel.

Frequently Asked Questions

What does $ mean in JSONPath?

$ represents the root element of the JSON document. All JSONPath expressions start with $. For example, $.name returns the value of the name property at the top level.

What is the difference between . and .. in JSONPath?

. is a child operator — $.a.b selects property b of property a. .. is a recursive descent operator that selects all properties with a given name at any depth in the document.

What does [*] mean in JSONPath?

[*] is a wildcard subscript that selects all elements of an array or all properties of an object. For example, $.books[*].author selects the author of every book.

What is the difference between JSONPath and jq?

Both are tools for querying JSON. JSONPath is a standardised query language used in many tools and languages. jq is a more powerful command-line processor with its own language that supports transformations, not just querying.