In a JSON file, appsettings can be a nested heirachy, e.g.
{
"Top": {
"Second": {
"Key": "value"
}
}
}
Use :
as the separator
// key contains 'value'
var key = Configuration.GetValue<string>("Top:Second:Key");
Use __
(double underscore) as the separator
SET Top__Second__Key = value
Use __
(double underscore)
Top__Second__Key
Use .
as the separator
name: value:
Top.Second.Key value