Using JQ how do I convert array of objects to key-value pair object?
Given the JSON:
[ {"name": "foo","id": "123" }, {"name": "bar","id": "456" }]Desired output:
{"foo": "123","bar": "456"}
Using JQ how do I convert array of objects to key-value pair object?
Given the JSON:
[ {"name": "foo","id": "123" }, {"name": "bar","id": "456" }]Desired output:
{"foo": "123","bar": "456"}