Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp @ 1737:ef2f56c0311c
remove calls to deprecated classes of JsonCpp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 09:16:42 +0100 |
parents | 52b8b96cb55f |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp Tue Dec 22 09:06:33 2020 +0100 +++ b/OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp Tue Dec 22 09:16:42 2020 +0100 @@ -32,6 +32,8 @@ # include <DicomParsing/ParsedDicomFile.h> #endif +#include <Toolbox.h> + #include <boost/filesystem/path.hpp> namespace OrthancStone @@ -141,9 +143,8 @@ virtual void HandleString(const std::string& body) { - Json::Reader reader; Json::Value value; - if (reader.parse(body, value)) + if (Orthanc::Toolbox::ReadJson(value, body)) { HandleJson(value); }