summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-09 12:48:17 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-06-10 17:31:01 +0100
commite1860032be34d2fa7083e97ebcf298aabc85fa70 (patch)
tree7555f373978b12a4a2399c02072ccf84484b1b24
parent597a798efc08b40c94cef1842f75a7191525cae3 (diff)
downloadjson-glib-e1860032be34d2fa7083e97ebcf298aabc85fa70.tar.gz
Update the documentation of the utility API
-rw-r--r--json-glib/json-utils.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/json-glib/json-utils.c b/json-glib/json-utils.c
index dda4602..72c78e5 100644
--- a/json-glib/json-utils.c
+++ b/json-glib/json-utils.c
@@ -28,13 +28,12 @@
* @str: a valid UTF-8 string containing JSON data
* @error: return location for a #GError
*
- * Parses the string in @str and returns a #JsonNode representing
- * the JSON tree.
+ * Parses the given string and returns the corresponding JSON tree.
*
- * If @str is empty, this function will return %NULL.
+ * If the string is empty, this function will return `NULL`.
*
- * In case of parsing error, this function returns %NULL and sets
- * @error appropriately.
+ * In case of parsing error, this function returns `NULL` and sets
+ * the error appropriately.
*
* Returns: (transfer full) (nullable): the root node of the JSON tree
*
@@ -65,11 +64,11 @@ json_from_string (const char *str,
/**
* json_to_string:
- * @node: a #JsonNode
+ * @node: a JSON tree
* @pretty: whether the output should be prettyfied for printing
*
* Generates a stringified JSON representation of the contents of
- * the passed @node.
+ * the given `node`.
*
* Returns: (transfer full): the string representation of the node
*