Given a JSON object
{"foo":["barfoo"],"bar":["foobar"]}
I would like to merge both arrays, i.e. output:
barfoofoobar
Obviously I can list either array using, e.g. jq -r .foo[]
but I'm not sure how to go about merging both.
The array names (foo
/ bar
) are constants, they do not change.