Remove Newtonsoft.Json dependency
7702244 opened this issue · 4 comments
7702244 commented
You are only using json serialization in the JwsSigner.cs class. Why not get rid of the heavy dependency Newtonsoft.Json and use the standard fast and simple JsonSerializer (Documentation)
au5ton commented
JsonSerializer seems to only available in .NET Core 3.0 and later. This project seems to be targeting .NET versions before that, so Newtonsoft is necessary.
https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializer?view=net-8.0#applies-to
7702244 commented
Maybe it would be better to make a separate version for the new .NET without unnecessary dependencies?
coryjthompson commented
Thanks @7702244.
This has been merged and will be in the next release.