diff Framework/PullMode/PullJob.cpp @ 31:cfeda58d0c8e

remove calls to deprecated classes of JsonCpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Dec 2020 08:31:22 +0100
parents dfc43678aecb
children 44a0430d7899
line wrap: on
line diff
--- a/Framework/PullMode/PullJob.cpp	Fri Nov 06 18:06:55 2020 +0100
+++ b/Framework/PullMode/PullJob.cpp	Tue Dec 22 08:31:22 2020 +0100
@@ -26,8 +26,6 @@
 #include <Compatibility.h>  // For std::unique_ptr
 #include <Logging.h>
 
-#include <json/writer.h>
-
 
 namespace OrthancPlugins
 {
@@ -169,8 +167,8 @@
 
     virtual StateUpdate* Step()
     {
-      Json::FastWriter writer;
-      const std::string lookup = writer.write(job_.query_.GetResources()); 
+      std::string lookup;
+      Orthanc::Toolbox::WriteFastJson(lookup, job_.query_.GetResources());
 
       Json::Value answer;
       if (!DoPostPeer(answer, job_.peers_, job_.peerIndex_, URI_LOOKUP, lookup, job_.maxHttpRetries_))