Closed tobetheDuke closed 5 years ago
neb::CJsonObject oTest;
oTest.AddEmptySubArray("test");
for (int i = 1; i < 3; ++i)
{
neb::CJsonObject oDimension1;
neb::CJsonObject oDimension2;
oDimension2.Add("test", i);
oDimension1.Add(oDimension2);
oTest["test"].Add(oDimension1);
}
std::cout << oTest.ToString() << std::endl;
类似“test”:[ [{“test”:1}], [{“test”:2}] ]