How to deserialise enumeration with string representation?
问题 I would like to create a class, which has an enumeration as an attribute. This enumeration should have a string representation that shows up as human-readable value when dumping the instance of the class that uses the enum attribute as a JSON string. In the minimal working example below, I created three enumerations in three different ways. After the deserialization, each attribute shows us that it comes from an enumeration except the enumeration with a string representation. It is just a