1
我有一个JSON对象说:增加值到JsonCpp对象/嵌套JsonCpp JSON:值对象
Json::Value temp;
temp["example1"] = "first";
将被表示为
{
"example1" : "first"
}
现在,如果我想补充另一个对象进入上述对象而不使用索引方法,我该怎么做呢?例如:
{
"example1" : "first",
"example2" : "second"
}
但使用避免语法
temp["example2"] = "second";
是否有任何JsonCpp当量至push_back()
(如在C++中的载体/列表)?