diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-01-29 10:58:11 +0100 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2018-01-29 10:58:37 +0100 |
commit | b838d49bd4cfc6b085f2a5ff3343806cb5c74b13 (patch) | |
tree | cabcb68c06d03fdb6008e67c3fe3e8ad6876dcbf /ll-database-binding | |
parent | 0ee62da86da6b65d3639532462b39394a3321413 (diff) |
Change-Id: I65721f643086b4282f50ccb4fd4c03d2f525d30a
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'll-database-binding')
-rw-r--r-- | ll-database-binding/src/persistence-binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |