0
       { 
            { "IdentityServer:Host", "local.example.com" }, 
            { "IdentityServer:ClientId", "MyClientId" },  
            { "SlackApi:WebhookUrl",  "https://hooks.slack.com/services/Some/Url" },  
            { "SlackApi:DisplayName", "Slack bot" } 
        };

这是我从 Azure 门户获得的。我希望将其转换为 aspnetcore 中 localsettings.json 的 json 格式。

{
"IdentityServer":{
    "Host": "local.example.com",
    "ClientId": "MyClientId"
},
"SlackApi": {
    "WebhookUrl":"https://hooks.slack.com/services/Some/Url",
    "DisplayName":"Slack bot" 
}
}
4

0 回答 0