rex.utilities.utilities.dict_str_load

dict_str_load(dict_str)[source]

Load jsonified string entries into dictionaries using JSON

Parameters:

dict_str (str) – JSON style string provided to CLI or in config

Returns:

out_dict (dict) – Dictionary loaded by JSON

Examples

>>> json_str = "{bool_key: 'True', value_key: 'None'}"
>>> dict_str_load(json_str)
{bool_key: True,
 value_key: None}