rapidjson::Value &HeartBeat = tmpDoc["command"];
rapidjson::Value &Sequence = tmpDoc["seq"];
rapidjson::Value Status;
rapidjson::Value &Sequence = tmpDoc["seq"];
rapidjson::Value Status;
rapidjson::Document document;
document.SetObject();
rapidjson::Document::AllocatorType& allocator = document.GetAllocator();
document.SetObject();
rapidjson::Document::AllocatorType& allocator = document.GetAllocator();
Status.SetInt(m_nTalkID);
//std::string sTvwallid;
//char szTvwallID[12] = {0};
//sprintf(szTvwallID,"%d",m_nTalkID);
//sTvwallid = szTvwallID;
document.AddMember("command", tmpDoc["command"], allocator);
document.AddMember("state", Status, allocator);
document.AddMember("seq", tmpDoc["seq"], allocator);
//std::string sTvwallid;
//char szTvwallID[12] = {0};
//sprintf(szTvwallID,"%d",m_nTalkID);
//sTvwallid = szTvwallID;
document.AddMember("command", tmpDoc["command"], allocator);
document.AddMember("state", Status, allocator);
document.AddMember("seq", tmpDoc["seq"], allocator);
rapidjson::StringBuffer buffer;
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
document.Accept(writer);
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
document.Accept(writer);
*res = buffer.GetString();