Hi,
I ran into the same probelm.
Adding following to the program.cs helped in my case. I used .net core 7..
// Add services to the container.
builder.Services.AddControllersWithViews()
// Maintain property names during serialization. See:
// https://github.com/aspnet/Announcements/issues/194
.AddJsonOptions(options =>
options.JsonSerializerOptions.PropertyNamingPolicy = null);