diff irccdctl/cli.cpp @ 649:4a13a016ea4f

Irccd: use new json_util::parser class
author David Demelier <markand@malikania.fr>
date Mon, 26 Mar 2018 20:30:15 +0200
parents 7e2d0739f37c
children 95ac3ace1610
line wrap: on
line diff
--- a/irccdctl/cli.cpp	Mon Mar 26 19:22:01 2018 +0200
+++ b/irccdctl/cli.cpp	Mon Mar 26 20:30:15 2018 +0200
@@ -36,7 +36,7 @@
         if (code)
             throw boost::system::system_error(code);
 
-        const auto c = json_util::get_string(message, "/command"_json_pointer);
+        const auto c = json_util::parser(message).get<std::string>("command");
 
         if (!c) {
             recv_response(ctl, std::move(req), std::move(handler));