I have a huge JSON file that I need to cull down based on some values of keys for nested objects. Basically the JSON file looks like this:
{
"Card One": {
"colors": ["G", "R"],
"layout": "normal",
"leadershipSkills": {"brawl": false, "commander": true},
///etc
},
"Card Two": {...},
"Card Three": {...},
/// etc
}
How can I filter through each key/value pair in this object for only the pairs where "commander": true
is found?