Json::Value root;
root["Ret"] = Json::Value(0);
root["Err"] = Json::Value("");
Json::Value root2;
root2["Ret2"] = Json::Value(0);
root2["Err2"] = Json::Value("");
root["root2"] = root2;
Json::Value rootlist;
for (int i = 0; i < 5; i++)
{
Json::Value temp;
temp["hello"] = Json::Value(i);
rootlist.append(temp);
}
root["array"] = rootlist;
sResult = root.toStyledString();

2640

被折叠的 条评论
为什么被折叠?



