Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get multiple values from json array using jq

$ jq -r '.Volumes[] | .VolumeId + " " + .Tags[].Value' volumes.json
vol-00112233 vol-rescue-system
vol-00112234 vol-rescue-swap
vol-00112235 vol-rescue-storage
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #values #json #array #jq
ADD COMMENT
Topic
Name
5+7 =