Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.validation.jsonschema.validate_json_against_schema

validate_json_against_schema(json_dict, schema, err_msg=None)

GitHub

Validates JSON dict against a schema.

Parameters

  • json_dict (dict) – JSON to be validated.
  • schema (dict or str) – JSON schema dictionary or the name of one of the standards schemas in Qiskit to validate against it. The list of standard schemas is: backend_configuration, backend_properties, backend_status, default_pulse_configuration, job_status, qobj, result.
  • err_msg (str) – Optional error message.

Raises

SchemaValidationError – Raised if validation fails.

Was this page helpful?
Report a bug or request content on GitHub.