Complete implementation of json_builder_free instead of using json_value_free which doesn't free object names