Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SymbioticKilla opened this issue Jan 14, 2024 · 3 comments
Open

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

SymbioticKilla opened this issue Jan 14, 2024 · 3 comments
Labels
enhancement New feature or request. IoTSDK Tracks all IoT SDK issues across the board

Comments

@SymbioticKilla
Copy link

SymbioticKilla commented Jan 14, 2024

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!

@SymbioticKilla SymbioticKilla added the enhancement New feature or request. label Jan 14, 2024
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Jan 14, 2024
@abhipsaMisra
Copy link
Member

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

@SymbioticKilla
Copy link
Author

Yes

@michalczerwinski
Copy link

Similar thing was already rejected here:
#3424

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

3 participants