skip to Main Content

Json – Create a hash of arrays from CSV with jq

I have the following CSV (truncated): "adfebb","a-f-A-M-F-R-Z","95-00123","C560","USAF" "ae0133","a-f-A-M-F-R-Z","97-00102","C560","USAF" I need the following JSON: { "adfebb":["a-f-A-M-F-R-Z","95-00123","C560","USAF"], "ae0133":["a-f-A-M-F-R-Z","97-00102","C560","USAF"] } I have been tinkering with jq and came close but I haven't managed to get it just right. What I currently have is:…

VIEW QUESTION

replace one variable in nested json file

I have the following JSON file named as info.Json: { "jobs": [ { "type": "Account", "min": 5, "max": 15, "arguments": { "inix": 48, "load": "3.081579e+07", "overload": "6.508037e+07" }, "attributes": { "name": "emp_1", "priority_type": "low", "dependency": "-" } }, { "type":…

VIEW QUESTION
Back To Top
Search