jsonDoc.AddMember

来源:互联网 发布:何凯文 知乎 编辑:程序博客网 时间:2024/06/06 04:22

rapidjson::Document jsonDoc;
jsonDoc.SetObject();
rapidjson::Document::AllocatorType& allocator = jsonDoc.GetAllocator();
std::string kNickName = utility::toString(time(NULL));

jsonDoc.AddMember("openid", rapidjson::Value(kNickName.c_str(), allocator), allocator);

0 0
原创粉丝点击