From: Loïc Collignon Date: Mon, 29 Jan 2018 09:58:11 +0000 (+0100) Subject: fix json key to string conversion. X-Git-Tag: flounder/5.99.1~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=3a3854c69f56ab321a22b73baf50cb7c5bab89a2;p=apps%2Fagl-service-data-persistence.git fix json key to string conversion. Change-Id: I65721f643086b4282f50ccb4fd4c03d2f525d30a Signed-off-by: Loïc Collignon --- diff --git a/ll-database-binding/src/persistence-binding.c b/ll-database-binding/src/persistence-binding.c index 6d56309..e16b93b 100644 --- a/ll-database-binding/src/persistence-binding.c +++ b/ll-database-binding/src/persistence-binding.c @@ -332,7 +332,7 @@ static int get_key(struct afb_req req, DATA *key) return -1; } if (!item - || !(jkey = json_object_get_string(item)) + || !(jkey = json_object_to_json_string_ext(item, JSON_C_TO_STRING_PLAIN)) || !(ljkey = strlen(jkey))) { afb_req_fail(req, "bad-key", NULL);