diff options
Diffstat (limited to 'json_object.h')
-rw-r--r-- | json_object.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/json_object.h b/json_object.h index 53f2944..17fc3fc 100644 --- a/json_object.h +++ b/json_object.h @@ -377,7 +377,7 @@ JSON_EXPORT int json_object_object_add(struct json_object *obj, const char *key, * @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 - * @param opts process-modifying options. To specify multiple options, use + * @param opts process-modifying options. To specify multiple options, use * arithmetic or (OPT1|OPT2) */ JSON_EXPORT int json_object_object_add_ex(struct json_object *obj, const char *const key, @@ -585,7 +585,7 @@ JSON_EXPORT struct json_object *json_object_array_get_idx(const struct json_obje /** Delete an elements from a specified index in an array (a json_object of type json_type_array) * * The reference count will be decremented for each of the deleted objects. If there - * are no more owners of an element that is being deleted, then the value is + * are no more owners of an element that is being deleted, then the value is * freed. Otherwise, the reference to the value will remain in memory. * * @param obj the json_object instance @@ -617,8 +617,8 @@ JSON_EXPORT struct json_object *json_object_new_boolean(json_bool b); JSON_EXPORT json_bool json_object_get_boolean(const struct json_object *obj); /** Set the json_bool value of a json_object - * - * The type of obj is checked to be a json_type_boolean and 0 is returned + * + * The type of obj is checked to be a json_type_boolean and 0 is returned * if it is not without any further actions. If type of obj is json_type_boolean * the object value is changed to new_value * @@ -667,8 +667,8 @@ JSON_EXPORT struct json_object *json_object_new_uint64(uint64_t i); JSON_EXPORT int32_t json_object_get_int(const struct json_object *obj); /** Set the int value of a json_object - * - * The type of obj is checked to be a json_type_int and 0 is returned + * + * The type of obj is checked to be a json_type_int and 0 is returned * if it is not without any further actions. If type of obj is json_type_int * the object value is changed to new_value * @@ -725,8 +725,8 @@ JSON_EXPORT int64_t json_object_get_int64(const struct json_object *obj); JSON_EXPORT uint64_t json_object_get_uint64(const struct json_object *obj); /** Set the int64_t value of a json_object - * - * The type of obj is checked to be a json_type_int and 0 is returned + * + * The type of obj is checked to be a json_type_int and 0 is returned * if it is not without any further actions. If type of obj is json_type_int * the object value is changed to new_value * @@ -851,8 +851,8 @@ JSON_EXPORT int json_object_double_to_json_string(struct json_object *jso, struc JSON_EXPORT double json_object_get_double(const struct json_object *obj); /** Set the double value of a json_object - * - * The type of obj is checked to be a json_type_double and 0 is returned + * + * The type of obj is checked to be a json_type_double and 0 is returned * if it is not without any further actions. If type of obj is json_type_double * the object value is changed to new_value * @@ -924,8 +924,8 @@ JSON_EXPORT int json_object_get_string_len(const struct json_object *obj); JSON_EXPORT int json_object_set_string(json_object *obj, const char *new_value); /** Set the string value of a json_object str - * - * The type of obj is checked to be a json_type_string and 0 is returned + * + * The type of obj is checked to be a json_type_string and 0 is returned * if it is not without any further actions. If type of obj is json_type_string * the object value is changed to new_value * @@ -969,7 +969,7 @@ JSON_EXPORT int json_object_equal(struct json_object *obj1, struct json_object * * When shallow_copy is called *dst will be NULL, and must be non-NULL when it returns. * src will never be NULL. * - * If shallow_copy sets the serializer on an object, return 2 to indicate to + * If shallow_copy sets the serializer on an object, return 2 to indicate to * json_object_deep_copy that it should not attempt to use the standard userdata * copy function. * @@ -980,7 +980,7 @@ typedef int(json_c_shallow_copy_fn)(json_object *src, json_object *parent, const /** * The default shallow copy implementation for use with json_object_deep_copy(). - * This simply calls the appropriate json_object_new_<type>() function and + * This simply calls the appropriate json_object_new_<type>() function and * copies over the serializer function (_to_json_string internal field of * the json_object structure) but not any _userdata or _user_delete values. * |