diff --git a/src/control_socket.cpp b/src/control_socket.cpp index 297507b..bb254b1 100644 --- a/src/control_socket.cpp +++ b/src/control_socket.cpp @@ -239,7 +239,7 @@ std::string control_socket_t::parse_command(const std::string &command) { // DEBUG("Parse command {}", command); auto js = json_t::parse(command); - auto method = nlohmann::to_string(js["method"]); + std::string method = js["method"]; try { if (method == "list") { auto res = std::vector{};