SETUP
I\'m trying to figure out how jq filters work and having trouble figuring out nested arrays. Using the data below I cannot make a flat 5 key outpu
You can use a variable to store the OwnerID as in:
OwnerID
.Reservations[] | .OwnerId as $OwnerId | ( .Instances[] | { "OwnerId": $OwnerId, InstanceId, ImageId, PrivateIpAddress, Platform} )