Answer (Choose 1 answer)
A. public void ConfigureServices (IApplication Builder services){}services.AddControllers With Views().AddJsonOptions(options => options.JsonSerializerOptions. Property NamingPolicy = null);
B. public void ConfigureServices (IEnvironmentBuilder services)services.AddControllers With Views().AddJsonOptions(options => options.JsonSerializerOptions. Property NamingPolicy = null);
C. public void Configure (IServiceCollection services)
{ services.AddControllers With Views() AddJsonOptions(options => options.JsonSerializerOptions. Property NamingPolicy = null):
public void ConfigureServices (IServiceCollection services)
services.AddControllers With Views().AddJsonOptions(options => options.JsonSerializerOptions. Property NamingPolicy = null);
}
How to configure JSON Serialization in ASP.NET Core?
Exit 18