I have this Json
{"users": [ {"first": "Stevie","last": "Wonder" }, {"first": "Michael","last": "Jackson" } ]}Using jq I'd like to display first and last name serially. Like so -
Stevie WonderMichael JacksonThis is how far I have gotten -
jq '.users[].first, .users[].last'But it displays
"Stevie""Michael""Wonder""Jackson"Notice the following:
- The double quotes that I do not want.
- The carriage return that I do not want.
- It's jumbled up. My query displays all the first names first, and then all the last names. However, I want first-last, first-last pair.