官网地址:
https://github.com/open-source-parsers/jsoncpp
一个简单测试:
void test_jsoncpp()
{
std::string jsoncppstring;
//写:
{Json::StyledWriter writer;
Json::Value jmessage;
jmessage["test_strkey1"] = "value1";
jmessage["test_strkey2"] = "value2";
jmessage["test_strkey3"] = "value3";
jmessage["test_intkey1"] = 100;
std::string strJsonCpp = writer.w