![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rapidjson
文章平均质量分 70
Sky_SY_ynk
这个作者很懒,什么都没留下…
展开
-
read json
// parse json from string. using rapidjson::Document; Document doc; doc.Parse0>(stringFromStream.c_str()); if (doc.HasParseError()) { rapidjson::ParseErrorCode code = doc.转载 2017-07-13 16:30:24 · 524 阅读 · 0 评论 -
write json
pcln("add a value into array"); Value item(Type::kObjectType); item.AddMember("key", "word5", doc.GetAllocator()); item.AddMember("value", "单词5", doc.GetAllocator()); contents.转载 2017-07-13 16:32:03 · 577 阅读 · 0 评论 -
rapidjson读写测试
#include #include #include //包含rapidjson必要头文件,rapidjson文件夹拷贝到工程目录,或者设置include路径,或者加入到工程树 #include "rapidjson/document.h" #include "rapidjson/filestream.h" #include "rapidjson/prettywriter.h"转载 2017-07-13 16:44:18 · 406 阅读 · 0 评论