Suppose I have a json like this:
{"records": [ {"id": 1,"name": "hello" }, {"id": 2,"name": "world" } ]}I could do this:
$ jq -r '.records[] | "id: \(.id) name: \(.name)"' afile.jsonid: 1 name: helloid: 2 name: worldHow can I insert new lines so that I could get this:
id: 1name: helloid: 2name: world