diff OrthancFramework/Sources/RestApi/RestApiPutCall.h @ 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 a01b1c9cbef4
children 80fd140b12ba
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiPutCall.h	Mon Dec 21 08:47:29 2020 +0100
+++ b/OrthancFramework/Sources/RestApi/RestApiPutCall.h	Mon Dec 21 18:09:47 2020 +0100
@@ -70,7 +70,7 @@
 
     virtual bool ParseJsonRequest(Json::Value& result) const ORTHANC_OVERRIDE
     {
-      return ParseJsonRequestInternal(result, reinterpret_cast<const char*>(bodyData_), bodySize_);
+      return Toolbox::ReadJson(result, bodyData_, bodySize_);
     }      
   };
 }