Another question: how can I create a deserializer that supports two forms?
m
Michael Krussel
06/04/2024, 4:25 PM
If you only need to support JSON, you could create a
JsonContentPolymorphicSerializer
that picks between the two options.
Or just a serializer that deserializes to JsonElement or what every is the most common base and then manually parse from there.