Mercurial > hg > orthanc
diff OrthancFramework/Sources/Toolbox.h @ 4397:3aeb5171fbd4
new function Toolbox::ReadJsonWithoutComments()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 08:59:23 +0100 |
parents | f7104e9d044c |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Toolbox.h Tue Dec 22 08:16:08 2020 +0100 +++ b/OrthancFramework/Sources/Toolbox.h Tue Dec 22 08:59:23 2020 +0100 @@ -268,6 +268,13 @@ const void* buffer, size_t size); + static bool ReadJsonWithoutComments(Json::Value& target, + const std::string& source); + + static bool ReadJsonWithoutComments(Json::Value& target, + const void* buffer, + size_t size); + static void WriteFastJson(std::string& target, const Json::Value& source);