Suppose I have this ndjson:
{"id": "one", "colors": [{"color": "blue"}, {"color": "red"}]}{"id": "two", "colors": [{"color": "green"}]}How do I get the output below?
one blueone redtwo greenHere is a failed attempt:
$ cat tmp/test.json | jq -r '.id, .colors[].color'oneblueredtwogreenHere is a second failed attempt:
$ cat tmp/test.json | jq -r '[.id, .colors[].color]|@tsv'one blue redtwo green