I use rapid json to serialize a dict, the key is uint32 and the value is a long string. The code is:
rapidjson::StringBuffer buffer();
rapidjson::Write<< rapidjson::StringBuffer>> writer(buffer);
root.Accept(writer);
const char* json_str = buffer.GetString();
But, I found the final json_str
is truncated. Does any one known how to avoid truncation?