Why on earth is the "discriminator name" for polym...
# serialization
d
Why on earth is the "discriminator name" for polymorphic serializers configured globally when creating the Json configuration? What if I have two types that require different discriminator names? I would have expected an annotation similar
@SerialName
which can configure it on a class-basis. What if I'm writing a library and it has serializable types in it? If someone uses the library and forgets to configure their
Json
properly, they get the wrong representation for my types. Is there a workaround?
👀 3