diff OrthancServer/OrthancInitialization.cpp @ 2871:6eebc2eb3168

refactoring serialization of RemoteModalityParameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Oct 2018 12:51:20 +0200
parents 7133ad478eea
children ae20fccdd867
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Mon Oct 08 17:36:54 2018 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Tue Oct 09 12:51:20 2018 +0200
@@ -599,7 +599,7 @@
 
     try
     {
-      modality.FromJson(modalities[name]);
+      modality.Unserialize(modalities[name]);
     }
     catch (OrthancException&)
     {
@@ -917,7 +917,7 @@
       modalities.removeMember(symbolicName);
 
       Json::Value v;
-      modality.ToJson(v);
+      modality.Serialize(v, true /* force advanced format */);
       modalities[symbolicName] = v;
     }