diff Plugin/DecodedImageAdapter.cpp @ 292:aadbffcee805

remove calls to deprecated classes of JsonCpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Dec 2020 09:03:24 +0100
parents ec1af1fdcaca
children e376158e2dbb
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp	Thu Dec 10 15:45:04 2020 +0100
+++ b/Plugin/DecodedImageAdapter.cpp	Tue Dec 22 09:03:24 2020 +0100
@@ -31,7 +31,6 @@
 
 #include <boost/lexical_cast.hpp>
 #include <boost/algorithm/string/predicate.hpp>
-#include <json/writer.h>
 #include <boost/regex.hpp>
 
 
@@ -172,9 +171,8 @@
       {
         json["Orthanc"]["PhotometricInterpretation"] = photometric;
       }
-      
-      Json::FastWriter writer;
-      content = writer.write(json);
+
+      Orthanc::Toolbox::WriteFastJson(content, json);
       return true;
     }
     else