bkbit.utils.load_json module
- bkbit.utils.load_json.load_json(file_path)[source]
Load a JSON file from the given file path.
- Parameters:
file_path (str) – The path to the JSON file.
- Returns:
The contents of the JSON file as a dictionary.
- Return type:
dict
- Raises:
FileNotFoundError – If the file does not exist.
JSONDecodeError – If the file is not a valid JSON.