How to replace an objects value with array in a json file using jq?
I'm simply trying to replace an objects value in a json file with an array, using jq in a bash script. The json file (truncated) looks like this: { "objects": { "type": "foo", "host": "1.1.1.1", "port": "1234" } } I…