yfpy.utils.reorganize_json_dict
- reorganize_json_dict(json_dict, obj_key, val_to_key)[source]
Function to reorganize a JSON dictionary of dictionaries.
The reorganized JSON dictionary is an ordered dictionary sorted by a specific attribute of the value dictionaries.
- Parameters
- Returns
An ordered dictionary of dictionaries sorted by val_to_key.
- Return type