diff options
Diffstat (limited to 'json-glib/json-object.c')
-rw-r--r-- | json-glib/json-object.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/json-glib/json-object.c b/json-glib/json-object.c index 7423917..96fcdbe 100644 --- a/json-glib/json-object.c +++ b/json-glib/json-object.c @@ -47,6 +47,13 @@ struct _JsonObject volatile gint ref_count; }; +/** + * json_object_new: + * + * Creates a new #JsonObject, an JSON object type representation. + * + * Return value: the newly created #JsonObject + */ JsonObject * json_object_new (void) { @@ -110,6 +117,14 @@ json_object_unref (JsonObject *object) } } +/** + * json_object_add_member: + * @object: a #JsonObject + * @member_name: the name of the member + * @node: the value of the member + * + * Adds a member named @member_name and containing @node into a #JsonObject. + */ void json_object_add_member (JsonObject *object, const gchar *member_name, |