Open petrsvihlik opened 4 years ago
I found the extension library for System.Text.Json which supports interface deserialization - https://github.com/dahomey-technologies/Dahomey.Json
Some good news:
They plan to extend polymorphic serialization and deserialization: https://github.com/dotnet/runtime/issues/45189
So this feature might become unblocked after .NET 6.
Blockers
Deserialization of interface types is not supported.
- Polymorphic deserialization will be supported in .NET 5Workaround
Motivation
Proposed solution
Additional context
Benchmarks