From cb46e8753d747ee157241e480b02ae240ac58466 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 22 Dec 2025 17:30:59 +0100 Subject: Improve json.hpp --- lib/RemoteControl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/RemoteControl.cpp') diff --git a/lib/RemoteControl.cpp b/lib/RemoteControl.cpp index dca3373..70671e7 100644 --- a/lib/RemoteControl.cpp +++ b/lib/RemoteControl.cpp @@ -109,8 +109,7 @@ std::list< std::vector > RemoteControllers::get_param_list_values(c std::string RemoteControllers::get_showjson() { json::map_t root; for (auto &controllable : rcs.controllables) { - root[controllable->get_rc_name()].v = - std::make_shared(controllable->get_all_values()); + root[controllable->get_rc_name()] = controllable->get_all_values(); } return json::map_to_json(root); -- cgit v1.2.3