You need to call join()
on the tags
list, not the individual tags. Try with:
jq -r '.tickets[] | [.created_at, .id, .via.channel, (.tags | join(","))] | @csv'
You need to call join()
on the tags
list, not the individual tags. Try with:
jq -r '.tickets[] | [.created_at, .id, .via.channel, (.tags | join(","))] | @csv'