Browse Source

Document refcount of json_tokener_parse_ex return

tags/json-c-0.14-20200419
Christopher Head 7 years ago
parent
commit
31d4d3dee7
No known key found for this signature in database GPG Key ID: 4B14D664A35D3E0B
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      json_tokener.h

+ 4
- 3
json_tokener.h View File

@@ -155,9 +155,10 @@ JSON_EXPORT void json_tokener_set_flags(struct json_tokener *tok, int flags);
* called.
*
* When a valid JSON value is parsed, a non-NULL json_object will be
* returned. Also, json_tokener_get_error() will return json_tokener_success.
* Be sure to check the type with json_object_is_type() or
* json_object_get_type() before using the object.
* returned, with a reference count of one which belongs to the caller. Also,
* json_tokener_get_error() will return json_tokener_success. Be sure to check
* the type with json_object_is_type() or json_object_get_type() before using
* the object.
*
* @b XXX this shouldn't use internal fields:
* Trailing characters after the parsed value do not automatically cause an


Loading…
Cancel
Save