def json_validator(value):
	try:
		json.loads(value)
	except Exception, e:
		raise ValidationError(u'JSON decode error: %s' % e)
Validates whether ``value`` is a valid json string.
dataset/ETHPy150Open ithinksw/philo/philo/validators.py/json_validator