From 94e5f493282c2a399d8ad2471604f50975560fc0 Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Sat, 21 Dec 2019 10:10:03 +0100 Subject: openxc-utils : No send string but send array_object for signals Change-Id: Iee28c1216ad5a3a4cdc76bd3edef4f7b5ccf0866 Signed-off-by: Arthur Guyader Signed-off-by: Romain Forlot --- low-can-binding/utils/openxc-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'low-can-binding/utils') diff --git a/low-can-binding/utils/openxc-utils.cpp b/low-can-binding/utils/openxc-utils.cpp index 8d331003..68c8a657 100644 --- a/low-can-binding/utils/openxc-utils.cpp +++ b/low-can-binding/utils/openxc-utils.cpp @@ -421,7 +421,7 @@ void jsonify_DynamicField(const openxc_DynamicField& field, json_object* value) else if(field.has_bytes_value) json_object_object_add(value, "value", json_object_new_string(converter_t::to_hex(field.bytes_value, field.length_array).c_str())); else if(field.has_json_value) - json_object_object_add(value, "signals", json_object_new_string(json_object_get_string(field.json_value))); + json_object_object_add(value, "signals", json_object_get(field.json_value)); } /// -- cgit 1.2.3-korg