extensions: align ProtoJSON integer parsing with generated fields (#356)