diff --git a/main.cpp b/main.cpp index ebeec15..dd06226 100644 --- a/main.cpp +++ b/main.cpp @@ -19,6 +19,7 @@ using namespace std; using namespace std::chrono; +using namespace nlohmann; const int DISPLAY_DURATION = 2000; const int PORT = 8081; @@ -83,7 +84,7 @@ void handleTCPConnection(int serverSocket) { string jsonString(buffer, bytesRead); try { - nlohmann::json jsonData = nlohmann::json::parse(jsonString); + json jsonData = json::parse(jsonString); cout << "Received JSON: " << jsonData << endl; {