def validate_json(value):
    try:
        json.loads(value)
    except:
        raise ValidationError(_('Ivalid JSON syntax'))
Tests present on a policy that does not exist.
dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/models.py/validate_json--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_iot_test.py/BotoIoTPolicyTestCase.test_present_when_policy_does_not_exist