def METHOD_NAME(cls, json_data: str | bytes | Path) -> _QCBase:
    """Constructs a schema object from JSON.
    The JSON data must match the latest standard as documented
    [here](https://molssi-qc-schema.readthedocs.io/en/latest/).
    Args:
        json_data: can be either the path to a file or the json data directly provided as a `str`.
    Returns:
        An instance of the schema object.
    """
    try:
        return cls.from_dict(json.loads(json_data))  # type: ignore[arg-type]
    except json.JSONDecodeError:
        with open(json_data, "r", encoding="utf8") as file:
            return cls.from_dict(json.load(file))