From bd7cfce714fdf90866fc554a7268859bd4da1420 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 30 Nov 2022 14:54:47 -1000 Subject: [PATCH] json comments /1 (#27805) --- aspnetcore/fundamentals/configuration/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 7d97c27557..05c0e1d0c3 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -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. + ### Bind hierarchical configuration data using the options pattern