Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented)
2 files changed