read_json
read_json(path: Path)Reads datapackage.json into a Python dictionary.
Parameters
path : Path-
The path to the
datapackage.jsonfile to read.
Returns
dict[str, Any]-
The contents of the JSON file as a Python dictionary.
Raises
FileNotFoundError-
If the file does not exist.
JSONDecodeError-
If the contents of the file cannot be de-serialised as JSON.
TypeError-
If the contents of the JSON file aren’t converted to a Python dictionary.