pair values from different levels selecting one based on neighbor member
问题 I'm trying to go through an array of objects w/ jq and convert that to csv. I can do the some of the selection and to csv part but what I'm struggling with is figuring out how to get the Name tag value of each object. The json looks like this: { "Groups": [], "Instances": [ { "InstanceType": "m5.xlarge", "Tags": [ { "Key": "jenkins_slave_type", "Value": "demand_ec2 small" }, { "Key": "color", "Value": "jenkins" }, { "Key": "role", "Value": "jenkins" }, { "Key": "stack", "Value": "dev-us-east