def METHOD_NAME(self, value):
    """Convert the value to a string that can be stored in the database."""
    if not value:
        return None
    if isinstance(value, (dict, list)):
        return json.dumps(value, cls=DjangoJSONEncoder)
    return super().METHOD_NAME(value)