c++ print rapidjson

Time:2022-5-21
#include “rapidjson_1.0/stringbuffer.h”
#include “rapidjson_1.0/writer.h”
 
rapidjson::Value& gcms = data[“gcms”];
rapidjson::StringBuffer buff;
rapidjson::Writer writer(buff);
gcms.Accept(writer);
LOG(NOTICE) << “check author_brand_level, nid: ” << nid << ” author_brand_level: ” << author_brand_level->GetInt()
<< “gcms :” << buff.GetString();