'Check value is a valid JSON string, raise ValidationError on
error.'

def validate(self, value, model_instance):

    if isinstance(value, six.string_types):
        super(JSONField, self).validate(value, model_instance)
        try:
            simplejson.loads(value)
        except Exception as e:
            raise ValidationError(six.text_type(e))
