The fact that you cannot have trailing commans in lists or dicts as in is one of the most infuriating design choices of all time!!!
3,
at:{
"asdf": [
1,
2,
3,
]
}
Yet another awk-like domain-specific language to do things from the CLI in a ridiculously short humber of character? Oh yes.
echo '[{"a": 1, "b": 2}, {"b": 3}]' | jq '.[] | select(.a) | .a'
1
Articles by others on the same topic
There are currently no matching articles.