您的位置:首页 > Web前端 > JavaScript

jsonDoc.AddMember

2017-04-19 14:40 92 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: