Looking for help on extracting the main key from a JSON file based on sub_key values. For example:
{
"a": {
"category": "Drama"
},
"b": {
"category": "Adventure",
},
"c": {
"category": "Drama"
}
}
I need to identify all main keys where the category value is 'Drama'.
Please provide guidance on how to achieve this using simple functions. Thank you!