Procházet zdrojové kódy

minimize json output

Missingmew před 5 roky
rodič
revize
1b0db52078
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      cli/src/iomanager.cpp

+ 2 - 2
cli/src/iomanager.cpp

@@ -8,8 +8,8 @@ IoManager::IoManager(char *ipcstring) {
   ipstring = std::string(ipcstring);
   port = 1234;
   tcpsock = new tcp::socket(ios);
-  wbuilder["indentation"] = ""; // If you want whitespace-less output
-  rbuilder["indentation"] = ""; // If you want whitespace-less output
+  wbuilder.settings_["indentation"] = ""; // If you want whitespace-less output
+  rbuilder.settings_["indentation"] = ""; // If you want whitespace-less output
   // const std::string output = Json::writeString(wbuilder, root);
   reader = rbuilder.newCharReader();
 }