nicetoolbox.utils.filehandling.load_json_file¶
- nicetoolbox.utils.filehandling.load_json_file(json_path: str) dict[source]¶
Load JSON data from a file.
- Parameters:
json_path (str) – The path to the JSON file.
- Returns:
The JSON data loaded from the file.
- Return type:
dict
- Raises:
FileNotFoundError – If the file does not exist.
json.JSONDecodeError – If the file contains invalid JSON data.