def _unpack(parent_key, parent_value):
    'Unpack one level of nesting in json file'
    if isinstance(parent_value, dict):
        for (key, value) in parent_value.items():
            (yield _process_dict_values(parent_key, key, value))
    elif isinstance(parent_value, list):
        for (i, value) in enumerate(parent_value):
            (yield _proccess_list(parent_key, i, value))
    else:
        (yield (parent_key, parent_value))
Unpack one level of nesting in json file
def _unpack(parent_key, parent_value):
    
    if isinstance(parent_value, dict):
        for (key, value) in parent_value.items():
            (yield _process_dict_values(parent_key, key, value))
    elif isinstance(parent_value, list):
        for (i, value) in enumerate(parent_value):
            (yield _proccess_list(parent_key, i, value))
    else:
        (yield (parent_key, parent_value))