Found 1 relevant article
-
Migration of IMvcBuilder.AddJsonOptions in ASP.NET Core 3.0 and JSON Serialization Configuration
This technical article examines the disappearance of the IMvcBuilder.AddJsonOptions method when upgrading from ASP.NET Core 2.0 to 3.0. It analyzes Microsoft's architectural shift in .NET Core 3.0, where Json.NET is no longer included by default, and introduces the new System.Text.Json API. The paper provides a comprehensive solution using the Microsoft.AspNetCore.Mvc.NewtonsoftJson package to reconfigure JSON serialization, with detailed code examples for maintaining custom serialization settings. By comparing old and new configuration approaches, it helps developers understand how to preserve control over JSON serialization in the new version, particularly for common requirements like property naming conventions.