def clean(self, value):
    value = super(JsonFormField, self).clean(value)
    try:
      json.loads(value)
    except __HOLE__, e:
      raise util.ValidationError(e)
    return value
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/djangojson.py/JsonFormField.clean