jq Command
Using jq with a file
# basic.json
"a": {
"b": {
"c": {
"d": "value"
}
}
},
"dan": [1,2,3,4,5,6,7,8],
"ban": "bar",
"cat": "baz"
}> jq "basic.json" "a"
=> "a": {
"b": {
"c": {
"d": "value"
}
}
}Using jq with a URL
Using jq with inline json
Special Keys / Expressions
Available Functions
Generic Functions
Conversion Functions
String / Number Functions
Boolean Checks
All functions can be used in other functions with the "&" operator.
Array Functions
Struct or Array of Structs functions
Last updated
Was this helpful?