json comments /1 (#27805)

pull/27776/head
Rick Anderson 2022-11-30 14:54:47 -10:00 committed by GitHub
parent fead78f68f
commit bd7cfce714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ If a configuration value must be guaranteed, see [GetValue](#getvalue). The prec
Using the [default](#default) configuration, the `appsettings.json` and `appsettings.{Environment}.json` files are enabled with [reloadOnChange: true](https://github.com/dotnet/extensions/blob/release/3.1/src/Hosting/Hosting/src/Host.cs#L74-L75). Changes made to the `appsettings.json` and `appsettings.{Environment}.json` file ***after*** the app starts are read by the [JSON configuration provider](#jcp).
### Comments in appsettings.json
Comments in `appsettings.json` and `appsettings.{Environment}.json`files are supported using JavaScript or C# style comments.
<a name="optpat"></a>
### Bind hierarchical configuration data using the options pattern