JSONPath is a query language for picking values out of JSON, such as $.store.book[*].author. Paste a document, type an expression and see every match with its path. It is a fast way to build and debug queries before using them in code, configuration or API tools.
Common uses
- Making a minified API response readable while debugging
- Finding the stray comma that breaks a config file
- Querying a large payload with JSONPath instead of scrolling through it
Frequently asked questions
- What does $ mean?
- It is the root of the document. Every JSONPath expression starts from it.
- How do I select all items in an array?
- Use the wildcard, for example $.items[*], or add a filter such as $.items[?(@.price < 10)].