Write a JSONPath expression, run it against your JSON and see exactly which values it selects, together with the full path of every match.
No installation or sign-up required. It works right in your browser.
JSONPath is a query language for JSON, much like XPath is for XML. It lets you navigate a JSON document and select values with a compact path syntax that starts at the root ($).
JSONPath is widely used in API testing tools, Kubernetes (kubectl -o jsonpath), log processing and configuration tooling. This tool helps you build and debug expressions before using them in your code.
| $ | The root object or array |
| @ | The current element inside a filter |
| .name / ['name'] | Child property by name |
| .. | Recursive descent: searches all levels |
| * | Wildcard: all properties or array items |
| [0] / [0,1] | Array index or a union of indexes |
| [start:end] | Array slice (negative indexes count from the end) |
| [?(...)] | Filter expression, e.g. ?(@.price < 10) or ?(@.author =~ /regex/i) |
Expressions are evaluated with Json.NET (Newtonsoft.Json), the most widely used JSON library for .NET. Its syntax follows the original JSONPath proposal by Stefan Goessner, including filters with comparison operators, && and ||, and regular expression matching with =~.
Property names are case-sensitive and must match the JSON exactly. Make sure the expression starts with $ and that filters compare values of the right type, for example numbers without quotes and strings in single quotes: ?(@.category == 'fiction').
The JSON input can be up to 1 MB with a maximum nesting depth of 64 levels. If an expression matches more than 1000 values, only the first 1000 are shown.