後端工坊 2021 年 9 月 1 日

[C++] How to transfer JSON to string

Json::Value jsonMsg; Json::Fas…

Json::Value jsonMsg;
Json::FastWriter fastWriter;
std::string output;

output = fastWriter.write(jsonMsg);
printf("%s\n", output.c_str());
End of article
1
0
Would love your thoughts, please comment.x
()
x