JSON Query Selector (JSONPath)
Query JSON with JSONPath, then filter, select, sort, limit and group the results.
Query Pipeline
Raw JSON Source
About the JSON Query Selector
Extract exactly the data you need from JSON. Start with a JSONPath expression, then chain SQL-style stages such as WHERE, SELECT, SORT, LIMIT and GROUP. Results update as you type, which makes it easy to build and debug queries before using them in code.
How to use it
- Paste or import your JSON.
- Add a PATH stage such as $.users[*] to pick the values to work with.
- Chain WHERE, SELECT, SORT, LIMIT or GROUP stages to shape the result.
- Copy or export the result, or explore it as a table or tree.
Frequently asked questions
What is JSONPath?
JSONPath is a query language for JSON, similar to XPath for XML, standardised as RFC 9535. Expressions start with $ for the root.
Are filter expressions supported?
Yes, for example $.items[?(@.price < 10)] selects every item cheaper than 10. Filters support ==, !=, <, <=, >, >=, &&, ||, ! and the RFC 9535 functions length(), count(), match(), search() and value().
How do WHERE and SELECT work?
WHERE keeps items matching a condition such as age > 18 and profile.active, where field names refer to the current item. SELECT keeps only the listed fields, for example id, profile.name as name.