.NET 3.1 JSON -Konfiguration binden

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<MyConfig>(configuration.GetSection("myConfig"));
Mateusz Juszczykowski