pi_portal.modules.mixins.json_file

JSONFile mixin classes.

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

JSONFileReader mixin class.

load_json_file(json_file_location)[source]

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

Parameters:

json_file_location (Union[Path, str]) – The path to the source file.

Return type:

Any

Returns:

The loaded JSON object.