Re:Jq: A lightweight and flexible command-line JSON processor
by pavel_lishin on Sunday June 15, 2014 @01:03PM
(#7895660)
Hey, me too! It's pretty awesome, although the documentation/examples aren't as great as they could be - it took me some time to figure out how to properly parse arrays, and I'm still not sure how to actually do what I want to do (I want to convert an array of two instance objects into an array with just two instance IDs.
[ Parent
| on HN ]
Re:Jq: A lightweight and flexible command-line JSON processor
by mh- on Sunday June 15, 2014 @01:11PM
(#7895690)
% aws ec2 describe-instances --instance-ids '["i-3026a249","i-28739551"]' \
| jq '[.Reservations[].Instances[].InstanceId]'
[
"i-28739551",
"i-3026a249"
]
Re:Jq: A lightweight and flexible command-line JSON processor
by pavel_lishin on Saturday June 21, 2014 @09:55AM
(#7924968)
Thanks!