def to_python(self, value):
    Field.to_python(self, value)
    try:
        return json.loads(value)
    except (TypeError, ValueError):
        raise FieldValidationException(("The value of '%s' for the '%s' parameter is not a valid JSON object" % (str(value), self.name)))
def to_python(self, value):
    Field.to_python(self, value)
    try:
        return json.loads(value)
    except (TypeError, ValueError):
        raise FieldValidationException(("The value of '%s' for the '%s' parameter is not a valid JSON object" % (str(value), self.name)))