summaryrefslogtreecommitdiff
path: root/json_object.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2012-03-31 13:47:28 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2012-03-31 13:47:28 -0500
commitaef439a1750a69c4721df50b83d696218a60db49 (patch)
tree3135536fb97c5af86df48c7324df009110224b5a /json_object.h
parent7e57d63aebf68889d3fe5ff94ab33e49f8de5ea3 (diff)
downloadjson-c-aef439a1750a69c4721df50b83d696218a60db49.tar.gz
Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects.
Diffstat (limited to 'json_object.h')
-rw-r--r--json_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/json_object.h b/json_object.h
index 1ee9fb0..e9898f4 100644
--- a/json_object.h
+++ b/json_object.h
@@ -79,6 +79,7 @@ extern void json_object_put(struct json_object *obj);
* Check if the json_object is of a given type
* @param obj the json_object instance
* @param type one of:
+ json_type_null (i.e. obj == NULL),
json_type_boolean,
json_type_double,
json_type_int,
@@ -92,6 +93,7 @@ extern int json_object_is_type(struct json_object *obj, enum json_type type);
* Get the type of the json_object
* @param obj the json_object instance
* @returns type being one of:
+ json_type_null (i.e. obj == NULL),
json_type_boolean,
json_type_double,
json_type_int,