I have cascading dropdownlist and working fine. When I add (builder.Services.AddControllersWithViews()
.AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);) in program.cs dropdownlist return undefined. I have also html table bind from database when I remove (builder.Services.AddControllersWithViews()
.AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);), it return undefined value.
How can I fix this?