fix json key to string conversion.
[apps/agl-service-data-persistence.git] / ll-database-binding / src / persistence-binding.c
index 6d56309..e16b93b 100644 (file)
@@ -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);