diff options
Diffstat (limited to 'json_object.h')
-rw-r--r-- | json_object.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/json_object.h b/json_object.h index 0ff6584..b7d37fe 100644 --- a/json_object.h +++ b/json_object.h @@ -230,8 +230,11 @@ extern struct lh_table* json_object_get_object(struct json_object *obj); * @param obj the json_object instance * @param key the object field name (a private copy will be duplicated) * @param val a json_object or NULL member to associate with the given field + * + * @return On success, <code>0</code> is returned. + * On error, a negative value is returned. */ -extern void json_object_object_add(struct json_object* obj, const char *key, +extern int json_object_object_add(struct json_object* obj, const char *key, struct json_object *val); /** Get the json_object associate with a given object field |