We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code:
std::vector<std::string> vec_task_string; rapidjson::Document document; document.SetObject(); rapidjson::StringBuffer buffer; rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); for (xxx) { buffer.Clear(); writer.Reset(buffer); document.AddMember(rapidjson::StringRef("xxxxxx"), rapidjson::StringRef(tmpstr.c_str()), document.GetAllocator()); document.Accept(writer); vec_task_string.push_back(buffer.GetString()); }
need help thanks!
The text was updated successfully, but these errors were encountered:
Base 2.3
80623fd
rapidjson复用有些不熟悉,详细: Tencent/rapidjson#2013 更替为nlohmann_json,但中文反序列化时候不友好utf8,详细: nlohmann/json#3414 后续如果没有对应的api解决,将引入boost::uft8编码转换后在反序列化,所以数据只要是string都要处理,因为不知道是否有中文,否则序列化将抛出异常.
No branches or pull requests
code:
need help thanks!
The text was updated successfully, but these errors were encountered: