JSONPath Evaluator
Query JSON the way you would in code.
Write a JSONPath expression, run it, and see every match with its resolved path and value. Click a node in the tree to have its path written for you, then generalise it into a query.
Input JSON
No values matched $.projects[*].name.
What is JSONPath?
JSONPath is a query language for JSON, in the spirit of XPath for XML. An expression describes a route through the document, and evaluating it returns every value that route reaches. It is widely used in API testing tools, log pipelines, Kubernetes tooling and configuration systems.
JSONPath syntax
- $ — the root of the document.
- .property or ["property"] — a child property.
- [0], [-1:] — array index and slice.
- [*] — every element of an array or every property of an object.
- .. — recursive descent; $..id finds every id at any depth.
- [?(@.status=="active")] — a filter expression over each item.
Building an expression from the tree
The fastest way to write a correct query is to stop guessing at key names. Expand the tree, click the node you want, and copy its path — you will get something like $.data[3].preferences.theme. Replace the concrete index with [*] and you have a query that returns that field for every record.
Security note
Jsonviewpro evaluates expressions in a restricted, safe mode. Filter expressions work normally, but they are handled by a limited expression evaluator rather than the JavaScript engine: assignments, constructor calls and access to globals all fail. A query is data, never code.
Frequently asked questions
Which JSONPath dialect is used?
How do I get every value of one field?
Can I filter by a value?
Are queries run on a server?
Related JSON tools
- JSON ViewerExplore JSON as a collapsible tree with search and copyable paths.
- JSON AnalyzerProfile structure and surface data-quality problems.
- JSON to CSVTurn arrays of records into a spreadsheet-ready CSV.
- JSON ValidatorCheck syntax with precise line, column and cause.
- JSON FormatterPretty-print messy JSON with your choice of indentation.