Serialising an Enum member to JSON

后端 未结 7 1909
借酒劲吻你
借酒劲吻你 2020-12-13 11:52

How do I serialise a Python Enum member to JSON, so that I can deserialise the resulting JSON back into a Python object?

For example, this code:

7条回答
提交回复
热议问题