.net 3.1 Bind json config

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