Lab 12 Web Technologies 2: Data Serialization

If your class instances should serialize into a JSON list decorate it with to_list(). By default The python built in listwill be called with your class instance as its argument. ie list(obj). This means your class needs to define the __iter__method. Here is an example: @to_object(suppress=["__type__"]) classPerson(object): ................
................