comparison OrthancFramework/Sources/HttpClient.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 785a2713323e
children d9473bd5ed43
comparison
equal deleted inserted replaced
4391:0c4ff5609548 4392:3af1d763763a
1065 HttpClient::HttpHeaders* answerHeaders) 1065 HttpClient::HttpHeaders* answerHeaders)
1066 { 1066 {
1067 std::string s; 1067 std::string s;
1068 if (ApplyInternal(s, answerHeaders)) 1068 if (ApplyInternal(s, answerHeaders))
1069 { 1069 {
1070 Json::Reader reader; 1070 return Toolbox::ReadJson(answerBody, s);
1071 return reader.parse(s, answerBody);
1072 } 1071 }
1073 else 1072 else
1074 { 1073 {
1075 return false; 1074 return false;
1076 } 1075 }