Mercurial > hg > orthanc
diff OrthancFramework/Sources/RestApi/RestApiCall.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 | bf7b9edf6b81 |
children | 80fd140b12ba |
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiCall.cpp Mon Dec 21 08:47:29 2020 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApiCall.cpp Mon Dec 21 18:09:47 2020 +0100 @@ -25,17 +25,6 @@ namespace Orthanc { - bool RestApiCall::ParseJsonRequestInternal(Json::Value& result, - const void* body, - size_t size) - { - result.clear(); - Json::Reader reader; - return reader.parse(reinterpret_cast<const char*>(body), - reinterpret_cast<const char*>(body) + size, result); - } - - std::string RestApiCall::FlattenUri() const { std::string s = "/";