'Deserialize the field\'s JSON integer data.'

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):
            try:
                field[k] = int(v)
            except ValueError:
                field[k] = v
    return field
