我想从slotList更改值。slotList[1][1] = "1234";我怎么解决这个问题?这是我尝试过的:JSON: {"slotList" : [ [ "1452", "1452", "1452", "1452", "1452" ], [ "1452", "1452", "1452", "1452", "1452" ], [ "1452", "1452", "1452", "1452", "1452" ], [ "1452", "1452", "1452", "1452", "1452" ], [ "1452", "1452", "1452", "1452", "1452" ] ]}码: if (bIsParsed == true){ Json::Value slotList = root["slotList"]; Json::Value slot = slotList[currentIndex]; Json::Value value = "111"; // what is wrong? do not change anything! OMG! slot[selectIndex].swap(value);}Json::StyledWriter writer;string jsonData = writer.write(root); 最佳答案 Json::Value&slotList = root [“slotList”];Json::Value&slot = slotList [currentIndex];slot [selectIndex] =“1111”;std::cout
10-08 12:02