yfpy.utils.dict_to_list

dict_to_list(json_dict)[source]

Function to convert a JSON dictionary to a list.

Parameters

json_dict (dict[str, Any]) – JSON dictionary.

Returns

A list derived from a JSON dictionary, or the original dictionary if it does not contain dictionaries as values.

Return type

list