JSON query
Query a JSON document with a path expression and pull out just the values you want.
Runs in your browser — nothing you type here is sent anywhere.
Document
1,047 characters
Path
Dots and brackets: a.b, [0], [-1], [*], [1:3], ..key anywhere below the root, and keys() / length() / type() last. The leading $ is optional.
Syntax
Paths in this document
3
matches
string
"chance"
string
"ops-bot"
string
"chance"
Finding one field inside a large response means scrolling, or writing a script. A path expression is faster, and it is the same syntax you will end up using in the code anyway.
Enter a path and matching values are extracted and listed live as you refine it. It is a quick way to confirm an expression is correct before it goes into a jq command or a mapping layer.
What people open it for
- Extracting one field from every element of a large array
- Testing a path expression before using it in code
- Exploring the shape of an unfamiliar response
In the terminal
tools jsonpath
Every utility is also a command in the desktop's shell.