Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.

djblets.db.validators

validate_json(value)[source]

Validates content going into a JSONField.

This will raise a ValidationError if the value is a string (representing a serialized JSON payload, possibly from the admin UI) and cannot be loaded properly.