CStringA strAResponseContent = CW2A(rStrResponseContent);
//啓用嚴格模式,讓非法的json解析時直接返回false,不自動容錯
Json::Reader reader(Json::Features::strictMode());
Json::Value root;
//
if (!reader.parse(strAResponseContent.GetBuffer(), root))
{
return FALSE;
}
CStringA strAResponseContent = CW2A(rStrResponseContent);
//啓用嚴格模式,讓非法的json解析時直接返回false,不自動容錯
Json::Reader reader(Json::Features::strictMode());
Json::Value root;
//
if (!reader.parse(strAResponseContent.GetBuffer(), root))
{
return FALSE;
}