Mercurial > hg > orthanc
diff OrthancFramework/Sources/JobsEngine/JobsEngine.cpp @ 4392:3af1d763763a
confining Json::Reader and Json::*Writer into Toolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Dec 2020 18:09:47 +0100 |
parents | 90f91b78d708 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobsEngine.cpp Mon Dec 21 08:47:29 2020 +0100 +++ b/OrthancFramework/Sources/JobsEngine/JobsEngine.cpp Mon Dec 21 18:09:47 2020 +0100 @@ -25,8 +25,8 @@ #include "../Logging.h" #include "../OrthancException.h" +#include "../Toolbox.h" -#include <json/reader.h> namespace Orthanc { @@ -197,8 +197,7 @@ const std::string& serialized) { Json::Value value; - Json::Reader reader; - if (reader.parse(serialized, value)) + if (Toolbox::ReadJson(value, serialized)) { LoadRegistryFromJson(unserializer, value); }