You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
How can I transform the below
Customer
instance into a JSON?I was expecting some sort of utility functions that convert the entire object (by traversing through the whole object) to a JSON
The text was updated successfully, but these errors were encountered: