Serialization of User-defined Types
Learn how to serialize user-defined types in Python.
We'll cover the following...
Standard Python types can be easily converted to JSON and vice-versa. However, if we attempt to serialize a user-defined Complex type to JSON, we get the following error:
TypeError: Object of type 'Complex' is ... Ask