.net 3.1 Bind Json Config

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