title: How to refer to another key in the same appsettings.json
body: <p>I wonder if there is a way to refer to another key in the same appsettings.json in ASP.NET/Core project.</p>
  
  <p>In the following example I wonder if it's possible to refer to the "DBName" key in the "DefaultConnection" because they share the same value:</p>
  
  <p>{
    "DBName": "MyDbName",</p>
  
  <p>"ConnectionStrings": {
      "DefaultConnection": "server=localhost;port=3306;user=username;database="MyDbName";"
    }
  }</p>