Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
464 stars 493 forks source link

[feature request] Move to System.Text.Json to support AOT #3424

Open SymbioticKilla opened 8 months ago

SymbioticKilla commented 8 months ago

Hi,

AOT is one of the biggest features in last .NET versions: https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net7%2Cwindows It would be great if Microsoft would update its library ecosystem to support own features. Newtonsoft.JSON will not support AOT: https://github.com/JamesNK/Newtonsoft.Json/issues/2732

There are also several extra benefits: 1.) Less dependencies

2.) System.Text.Json has better performance

Thanks!

abhipsaMisra commented 8 months ago

Is your feature request to update Microsoft.Azure.Devices.* libraries to take a dependency on System.Text.Json (as opposed to Newtonsoft.Json)?

SymbioticKilla commented 7 months ago

Yes