dgs.utils.files.read_json¶
- dgs.utils.files.read_json(filepath: str) dict[any, any] | list[any] [source]¶
Reads json file from a path.
- Parameters:
filepath – str or path object with ending
- Returns:
Loaded json from file as a dictionary.
- Raises:
InvalidPathException – If filepath doesn’t contain .json ending.