From 9fa2168599fc4912991a82a4fae06dd497dd0525 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 22 Sep 2025 10:54:11 +0100 Subject: [PATCH] serial: json: update b_dict usage --- serial/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial/json.c b/serial/json.c index c73e15e..34700ef 100644 --- a/serial/json.c +++ b/serial/json.c @@ -2978,7 +2978,7 @@ static enum b_status serialise_dict(const struct b_object *object, cJSON **out) return status; } - cJSON_AddItemToObject(json_dict, it.key, child); + cJSON_AddItemToObject(json_dict, b_string_ptr(it.key), child); } *out = json_dict;