c++ print rapidjson

#include "rapidjson_1.0/stringbuffer.h"
#include "rapidjson_1.0/writer.h"
 
rapidjson::Value& gcms = data["gcms"];
rapidjson::StringBuffer buff;
rapidjson::Writer<rapidjson::StringBuffer> writer(buff);
gcms.Accept(writer);
LOG(NOTICE) << "check author_brand_level, nid: " << nid << " author_brand_level: " << author_brand_level->GetInt()
<< "gcms :" << buff.GetString();
posted @ 2022-04-08 16:30  乐乐章  阅读(109)  评论(0编辑  收藏  举报