I know this is possible with jq, but there is an added complexity. One of the fields inside the json object is an array of strings. How do we handle this with jq?
{ "var": 1, "section": ["1","2","3"], "x": "test1" }, { "var": 2, "section": ["2","3","4"], "x": "test2" }, { "var": 3, "section": ["3","4","5"], "x": "test3" }, How do we make CSV output like this?
var,section,x "1","[1,2,3]","test1" "2","[2,3,4]","test2" "3","[3,4,5]","test3" I'm thingking of using JSON.stringify inside the jq arguments.