Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented)
diff --git a/json_object.h b/json_object.h
index f264629..6c42fc3 100644
--- a/json_object.h
+++ b/json_object.h
@@ -112,9 +112,9 @@
* imbalance in the reference count.
*
* @param obj the json_object instance
+ * @returns 1 if the object was freed.
*/
-extern void json_object_put(struct json_object *obj);
-
+int json_object_put(struct json_object *obj);
/**
* Check if the json_object is of a given type