json: align extension bytes with ProtoJSON base64 parsing (#350)