In C#, why does System.Text.Json.JsonSerializer.Serialize fail to serialize correctly when using dependency injection?
Introduction I have been coding in C# and we have been given the premise to remove all third-party libraries to avoid tightly-coupling our code with third-party libraries. However, I often find Microsoft’s .NET code to be buggy. (I have had more than one library with bugs in the Microsoft .NET library). Issue We need to […]