save json field as integer when needed