I'm trying to extract object names from JSON so that I can iterate over them. Here's my JSON:
{
"Resources": {
"vpc": {
"cidr": "192.168.1.0/24",
"dns_resolution": "TRUE"
},
"subnet": {
"cidr": "192.168.1.0/24",
"availability_zone": "us-west-1a"
}
}
}
This should return an array, like this:
echo ${array[@]}
vpc subnet