controller.utilities.configuration.CoreConfigurationModel.model_validate_json

classmethod CoreConfigurationModel.model_validate_json(json_data, *, strict=None, context=None)

Usage docs: https://docs.pydantic.dev/2.7/concepts/json/#json-parsing

Validate the given JSON data against the Pydantic model.

Parameters:
  • json_data (str | bytes | bytearray) – The JSON data to validate.

  • strict (bool | None, default: None) – Whether to enforce types strictly.

  • context (dict[str, Any] | None, default: None) – Extra variables to pass to the validator.

Return type:

TypeVar(Model, bound= BaseModel)

Returns:

The validated Pydantic model.

Raises:

ValueError – If json_data is not a JSON string.