comparison 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
comparison
equal deleted inserted replaced
4391:0c4ff5609548 4392:3af1d763763a
68 result.assign(reinterpret_cast<const char*>(bodyData_), bodySize_); 68 result.assign(reinterpret_cast<const char*>(bodyData_), bodySize_);
69 } 69 }
70 70
71 virtual bool ParseJsonRequest(Json::Value& result) const ORTHANC_OVERRIDE 71 virtual bool ParseJsonRequest(Json::Value& result) const ORTHANC_OVERRIDE
72 { 72 {
73 return ParseJsonRequestInternal(result, reinterpret_cast<const char*>(bodyData_), bodySize_); 73 return Toolbox::ReadJson(result, bodyData_, bodySize_);
74 } 74 }
75 }; 75 };
76 } 76 }