Azure/azure-iot-sdk-csharp

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

SymbioticKilla opened this issue · 3 comments

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:
JamesNK/Newtonsoft.Json#2732

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

  • smaller size
  • less maintenance incl. security issues

2.) System.Text.Json has better performance

Thanks!

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

Yes

Similar thing was already rejected here:
#3424

But... having no AOT possibility for docker is a big issue especially in IoT scenarios