diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-11-08 13:01:05 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-11-08 13:01:05 +0100 |
commit | 59e224c962345fdc30e3c67aa90627ad8771becf (patch) | |
tree | 3bfcc199726575774da0fdaa4e2f1a6d8b600e95 /src/utils-json.h | |
parent | 4cd8d99ab22ab339d54203bf977648af71d91499 (diff) |
utils-json: add facility for arrays
Change-Id: I6d536d730af71b18e78720839522b82aed63c0d4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/utils-json.h')
-rw-r--r-- | src/utils-json.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils-json.h b/src/utils-json.h index a08e8b9..3c4fee3 100644 --- a/src/utils-json.h +++ b/src/utils-json.h @@ -56,6 +56,7 @@ extern int j_integer_at(struct json_object *obj, const char *key, int defval); /* * Adds a keyed value (of type) and returns true if done or false in case of error + * when key==NULL object is an array and values are appended */ extern int j_add(struct json_object *obj, const char *key, struct json_object *val); extern int j_add_string(struct json_object *obj, const char *key, const char *val); |