瀏覽代碼

minimize json output

Missingmew 5 年之前
父節點
當前提交
1b0db52078
共有 1 個文件被更改,包括 2 次插入2 次删除
  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();
 }