소스 검색

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();
 }