diff OrthancFramework/UnitTestsSources/LuaTests.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 bf7b9edf6b81
children f7104e9d044c
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/LuaTests.cpp	Mon Dec 21 08:47:29 2020 +0100
+++ b/OrthancFramework/UnitTestsSources/LuaTests.cpp	Mon Dec 21 18:09:47 2020 +0100
@@ -175,9 +175,8 @@
     std::string s;
     f.ExecuteToString(s);
 
-    Json::FastWriter writer;
-    std::string t = writer.write(a);
-
+    std::string t;
+    Orthanc::Toolbox::WriteJson(t, a, true /* fast */);
     ASSERT_EQ(s, t);
   }
 }