The fact that you cannot have trailing commans in lists or dicts as in 3, at:
{
  "asdf": [
    1,
    2,
    3,
  ]
}
is one of the most infuriating design choices of all time!!!
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'
Output:
1
and no empty lines as desired.

Articles by others on the same topic (0)

There are currently no matching articles.