def to_internal_value(self, data):
        field = super(JSONIntFieldSerializer, self).to_internal_value(data)

        for k, v in field.viewitems():
            if v is not None:  # NoneType is used to unset a value
                try:
                    field[k] = int(v)
                except ValueError:
                    field[k] = v
                    # Do nothing, the validator will catch this later
        return field
Deserialize the field's JSON integer data.
dataset/ETHPy150Open deis/deis/controller/api/serializers.py/JSONIntFieldSerializer.to_internal_value