Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/Plugin/Plugin.cpp @ 1737:ef2f56c0311c
remove calls to deprecated classes of JsonCpp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 09:16:42 +0100 |
parents | c6139e08132b |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/Plugin.cpp Tue Dec 22 09:06:33 2020 +0100 +++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp Tue Dec 22 09:16:42 2020 +0100 @@ -171,9 +171,8 @@ Orthanc::EmbeddedResources::GetDirectoryResource( s, Orthanc::EmbeddedResources::WEB_APPLICATION, "/configuration.json"); - Json::Reader reader; Json::Value full; - if (!reader.parse(s, full) || + if (!Orthanc::Toolbox::ReadJson(full, s) || full.type() != Json::objectValue || !full.isMember(CONFIG_SECTION) || full[CONFIG_SECTION].type() != Json::objectValue)