I have the following code and I want to clean a json object created by json_object_new_string().
json_object_new_string()
#include #include
json_object_put will free everything referenced by the object. So yes, it's sufficient to use that function on jobj to free the whole object.
json_object_put
jobj