releso.util.reward_helpers.load_json
- releso.util.reward_helpers.load_json(f_n: PathLike | str) Dict[str, Any]
Loads data from a given file as a json object.
Will create a dummy file if it does not exist.
- Parameters:
f_n (Union[PathLike, str]) – Path to the file where the json encoded
stored. (data is)
- Returns:
Data loaded from the given file.
- Return type:
Dict[str, Any]