JSONPath tester

Run a JSONPath expression against JSON and view matches.

Paste JSON and a JSONPath expression (e.g. $.store.book[*].author) to inspect matching values.

JSON input
JSONPath expression
Matches

How it works

JSON is parsed, then the path expression selects nodes using JSONPath syntax.

Matches are shown as pretty-printed JSON, usually wrapped in an array.

JSONPath

JSONPath is a query language for JSON—similar in spirit to XPath for XML.

Privacy

Queries run locally; your data is not uploaded.

Common questions

Root path?
Use $ for the document root, e.g. $.field or $..field.
No matches?
An empty array means nothing matched the expression.
Invalid path?
Syntax errors in the expression are reported.
Validate JSON first?
Input must be valid JSON before querying.