diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index b333c52ab28b0fad91df874a76fa8833805d51a3..e0bee7d9c6b3916b81a47c771703e258d3d4a288 100755 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -71,11 +71,11 @@ bool LLGoogleTranslationHandler::parseResponse( std::string& err_msg) const { Json::Value root; - Json::Reader reader; - - if (!reader.parse(body, root)) + Json::CharReaderBuilder reader; + std::string errors; + if (!Json::parseFromStream(reader, std::istringstream(body), &root, &errors)) { - err_msg = reader.getFormattedErrorMessages(); + err_msg = errors; return false; } diff --git a/indra/newview/llwebprofile.cpp b/indra/newview/llwebprofile.cpp index ba7bf20c043954a3c6d3984cb065fb8963373e3c..84cbdf523b2827034ac2d9820f723c665a593b0d 100755 --- a/indra/newview/llwebprofile.cpp +++ b/indra/newview/llwebprofile.cpp @@ -85,10 +85,11 @@ public: } Json::Value root; - Json::Reader reader; - if (!reader.parse(body, root)) + Json::CharReaderBuilder reader; + std::string errors; + if (!Json::parseFromStream(reader, std::istringstream(body), &root, &errors)) { - LL_WARNS() << "Failed to parse upload config: " << reader.getFormattedErrorMessages() << LL_ENDL; + LL_WARNS() << "Failed to parse upload config: " << errors << LL_ENDL; LLWebProfile::reportImageUploadStatus(false); return; }