pi_portal.modules.mixins.read_json_file.JSONFileReader

class pi_portal.modules.mixins.read_json_file.JSONFileReader[source]

Bases: object

JSONFileReader mixin class.

load_json_file(json_file_location: Path | str) Any[source]

Load a JSON file from the filesystem and return it as a Python object.

Parameters:

json_file_location (Path | str) – The path to the source file.

Returns:

The loaded JSON object.

Return type:

Any