skip to Main Content

Upgrading from .net5 to .net7 Json Serialization stopped working

We had an ASP.NET Core 5 Web API backend alongside a ReactJS UI app. In startup we instantiated the json framework the following way: services.AddControllers() .AddNewtonsoftJson() .AddJsonOptions(options => { options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); }); It was working well alongside "JsonPropertyName" attributes, i.e.…

VIEW QUESTION
Back To Top
Search