I use .NET 7 Minimal API (app.MapGet) but I can't figure out how to use Newtonsoft instead of System.Text.Json.
I tried...
builder.Services.AddMvc().AddNewtonsoftJson();
And also...
builder.Services.AddControllersWithViews() .AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new Newtonsoft.Json.Serialization.DefaultContractResolver());
.. but since I have no controllers, it doesn't seam to work.