Move library from Newtonsoft.Json to System.Text.Json
See original GitHub issueMicrosoft & many developers have been moving their apps & libraries from Newtsoft.Json
to System.Text.Json
recently (e.g. the Microsoft Graph SDK for .NET).
It would be very appreciated if this library could be moved as well. Not only is System.Text.Json
faster and more efficient, it is also already used by many developers and libraries. Newtonsoft.Json
isn’t exactly the smallest .dll and increases the binaries of apps we are creating with the Google API Library for .NET.
This suggestion has been posted by @LindaLawton in https://github.com/googleapis/google-api-dotnet-client/issues/1464#issuecomment-945831437 before and I have read the discussion following on it but I was afraid that this doesn’t get the visibility needed when not posted as an own feature request.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:16
Top GitHub Comments
.NET Framework 4.6.1 (among others) has reached end-of-support now so that’s one obstacle less 😃 Would love to see
System.Text.Json
to be used at some point in the future@guillaume86: Please could you file a new issue with the details of what you’re trying to achieve, and why it needs new attributes to be applied? It sounds like it’s a somewhat different use case than “Please migrate off Newtonsoft.Json” in this case. (Can your serialization not just use the default property names?) There’s some potential there, although we wouldn’t target .NET 5 as it’s not an LTS - we’d make it .NET 6.0+, if we do it at all. To set expectations, I doubt that we’ll be able to put much time into even considering this until Q1 of 2022.