How to override an ASP.NET Core configuration array setting using environment variables
LT;DR In an ASP.NET Core app I have an appsettings.json config file which uses a JSON array to configure a collection of settings. How do I override a setting of one of the array objects using environment variables? Background I'm using serilog in an ASP.NET core application and using the Serilog.Settings.Configuration , to allow it to be configured using appsettings.json . The configuration is like this: { "Serilog": { "Using": ["Serilog.Sinks.Literate"], "MinimumLevel": "Debug", "WriteTo": [ { "Name": "File", "Args": { "path": "%TEMP%\\Logs\\serilog-configuration-sample.txt" } } ], "Enrich":