free the json object

call json_object_put(baseObject) to decrement the references to all of
the json objects, which frees them.