std::wifstream is;
is.open (str.c_str(),std::ios::binary);
wstring pszContent;
getline(is,pszContent);
Json::Reader reader;
Json::Value root;
string pszDoc = Transform.W2M(const_cast<wchar_t*>(pszContent.c_str()));
reader.parse(pszDoc,root,false);
原文链接:https://www.f2er.com/json/289064.html