kontent-ai / delivery-sdk-net

Kontent.ai Delivery .NET SDK
https://www.nuget.org/packages/Kontent.Ai.Delivery
MIT License
32 stars 42 forks source link

Support System.Text.Json #215

Open petrsvihlik opened 4 years ago

petrsvihlik commented 4 years ago

Blockers

Deserialization of interface types is not supported. - Polymorphic deserialization will be supported in .NET 5

Workaround

Motivation

Proposed solution

Additional context

Benchmarks

tomasjurasek commented 4 years ago

I found the extension library for System.Text.Json which supports interface deserialization - https://github.com/dahomey-technologies/Dahomey.Json

petrsvihlik commented 3 years ago

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.