Hi developamogh,
For .Net Core 3.1 you need to use the following to set JsonSerializerOptions option and set PropertyNamingPolicy to null.
services.AddControllersWithViews()
.AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);
For more details refer below article.
ASP.Net Core 3.0: Changing the default Camel Case JSON Output