Iterate through nested JSON to get specific key values
I have an output JSON file from an API call "ruletree" and I need to iterate through it to get values for domainName, rule & host keys. My ultimate goal is to put the iteration result into a new dictionary…