comparison OrthancServer/Sources/ServerContext.cpp @ 4394:f7104e9d044c

functions to read/write JSON in OrthancPluginCppWrapper.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Dec 2020 08:11:37 +0100
parents 3af1d763763a
children d9473bd5ed43
comparison
equal deleted inserted replaced
4393:e8e95b80194f 4394:f7104e9d044c
258 { 258 {
259 Json::Value value; 259 Json::Value value;
260 jobsEngine_.GetRegistry().Serialize(value); 260 jobsEngine_.GetRegistry().Serialize(value);
261 261
262 std::string serialized; 262 std::string serialized;
263 Toolbox::WriteJson(serialized, value, true /* fast */); 263 Toolbox::WriteFastJson(serialized, value);
264 264
265 index_.SetGlobalProperty(GlobalProperty_JobsRegistry, serialized); 265 index_.SetGlobalProperty(GlobalProperty_JobsRegistry, serialized);
266 } 266 }
267 catch (OrthancException& e) 267 catch (OrthancException& e)
268 { 268 {