How can I transform the below Customer instance into a JSON?
unit = Unit(settings.UNIT_API_DOMAIN, settings.UNIT_API_KEY)
customer = unit.customers.get("2331163")
json.dumps(customer) # TypeError: Object of type UnitResponse is not JSON serializable
I was expecting some sort of utility functions that convert the entire object (by traversing through the whole object) to a JSON