How do I get jq to take json like this:
{"host1": { "ip": "10.1.2.3" },"host2": { "ip": "10.1.2.2" },"host3": { "ip": "10.1.18.1" }}
and generate this output:
host1, 10.1.2.3host2, 10.1.2.2host3, 10.1.18.1
I'm not interested in the formatting, I just can't figure out how to access the key name and value.