xpath - JSONPath extract string "where" JSON file -


i'm trying run jsonpath on below json file , extract ip addresses (ip_prefix:) region equals "region: "ap-southeast-1""

https://ip-ranges.amazonaws.com/ip-ranges.json

my xpath skills rusty, jsonpath skills novice!

fixed guidance blog post samples ...

$.prefixes[?(@.region=="ap-southeast-2")].ip_prefix 

Comments