{"success":true,"title":"百度热点","subtitle":"指数","update_time":"2023-02-20 08:56:02","data":[{"index":1,"title":"布林肯称中或向俄提供武器 中方驳斥","d......
我希望读取到data内index1的信息,似乎[符号阻止了我的访问。一下是jsoncpp代码,我要如何修改?
CString str = content;
Json::Reader reader;
Json::Value root;
CString temp;
CString temp2;
CString temp3;
CString temp4;
CString temp5;
CString temp6;
USES_CONVERSION;
char* cJson = T2A(str.GetBuffer(0));
str.ReleaseBuffer();
if (reader.parse(cJson, root)) {
temp2 = root["data"].asCString();
MessageBox(temp2);
}