Commit a3b91ef4 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣

Merge branch 'wip/rishi/24-doc-fix' into 'master'

docs: Clarify some expections of the json_object_get_*_member APIs

Closes #24

See merge request !9
parents 279de977 0f601e4d
Pipeline #5806 passed with stage
in 2 minutes and 22 seconds
......@@ -567,7 +567,7 @@ object_get_member_internal (JsonObject *object,
* a #JsonObject.
*
* Return value: (transfer none) (nullable): a pointer to the node for the
* requested object member, or %NULL
* requested object member, or %NULL if it does not exist.
*/
JsonNode *
json_object_get_member (JsonObject *object,
......@@ -625,9 +625,11 @@ json_object_get_ ##type_name## _member_with_default (JsonObject *object, \
* @member_name: the name of the @object member
*
* Convenience function that retrieves the integer value
* stored in @member_name of @object
* stored in @member_name of @object. It is an error to specify a
* @member_name which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_int_member_with_default(),
* json_object_get_member() and json_object_has_member()
*
* Return value: the integer value of the object's member
*
......@@ -660,9 +662,11 @@ JSON_OBJECT_GET_DEFAULT (gint64, int)
* @member_name: the name of the member
*
* Convenience function that retrieves the floating point value
* stored in @member_name of @object
* stored in @member_name of @object. It is an error to specify a
* @member_name which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_double_member_with_default(),
* json_object_get_member() and json_object_has_member()
*
* Return value: the floating point value of the object's member
*
......@@ -695,9 +699,11 @@ JSON_OBJECT_GET_DEFAULT (double, double)
* @member_name: the name of the member
*
* Convenience function that retrieves the boolean value
* stored in @member_name of @object
* stored in @member_name of @object. It is an error to specify a
* @member_name which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_boolean_member_with_default(),
* json_object_get_member() and json_object_has_member()
*
* Return value: the boolean value of the object's member
*
......@@ -730,9 +736,11 @@ JSON_OBJECT_GET_DEFAULT (gboolean, boolean)
* @member_name: the name of the member
*
* Convenience function that retrieves the string value
* stored in @member_name of @object
* stored in @member_name of @object. It is an error to specify a
* @member_name that does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_string_member_with_default(),
* json_object_get_member() and json_object_has_member()
*
* Return value: the string value of the object's member
*
......@@ -765,9 +773,10 @@ JSON_OBJECT_GET_DEFAULT (const char *, string)
* @member_name: the name of the member
*
* Convenience function that checks whether the value
* stored in @member_name of @object is null
* stored in @member_name of @object is null. It is an error to
* specify a @member_name which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_member() and json_object_has_member()
*
* Return value: %TRUE if the value is null
*
......@@ -803,9 +812,10 @@ json_object_get_null_member (JsonObject *object,
* @member_name: the name of the member
*
* Convenience function that retrieves the array
* stored in @member_name of @object
* stored in @member_name of @object. It is an error to specify a
* @member_name which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_member() and json_object_has_member()
*
* Return value: (transfer none): the array inside the object's member
*
......@@ -839,7 +849,7 @@ json_object_get_array_member (JsonObject *object,
* stored in @member_name of @object. It is an error to specify a @member_name
* which does not exist.
*
* See also: json_object_get_member()
* See also: json_object_get_member() and json_object_has_member()
*
* Return value: (transfer none) (nullable): the object inside the object’s
* member, or %NULL if the value for the member is `null`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment