jmespath / jmespath/jmespath.site
how to query that a hash contains a key?
- Dominant language
- Makefile
- Stars
- 61
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
I can't find anything that illuminates my problem.
Given data:
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "10.12.160.0/20",
"State": "active",
"VpcPeeringConnectionId": "pcx-851234ed"
},
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "10.13.176.0/20",
"State": "active",
"VpcPeeringConnectionId": "pcx-bdffffd5"
},
{
"GatewayId": "vgw-0a12ab63",
"DestinationCidrBlock": "10.0.0.0/8",
"State": "active",
"Origin": "CreateRoute"
},
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "0.0.0.0/0",
"NatGatewayId": "nat-0e902b64123458915",
"State": "active"
},
how do I query to pick only the hashes that contain the key 'VpcPeeringConnectionId'?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.