title: How to get the child elements by specifying the child name in json settings file?
body: <pre><code>"AppSettings": 
  {"AzureAd":
   {
  "Instance": "https://login.microsoftonline.com/",
  "Domain": "abc.com",
  "TenantId": "90836560-70ab-4caa-9e10-7e80b43d8d5a"
   }
  }
  </code></pre>
  
  <p>How to get the value of a "Instance" value in the class file. I have tried  this below which doesn't work</p>
  
  <pre><code> var symmetrickey = _configuration.GetSection("AppSettings:AzureAd:Instance").GetChildren()
                    .Select(configSection =&gt; configSection.Value);
  </code></pre>
  
  <p>where as Im getting array of node "AzureAd" when I modify like below</p>
  
  <pre><code>var symmetrickey = _configuration.GetSection("AppSettings:AzureAd").GetChildren()
                    .Select(configSection =&gt; configSection.Value);
  </code></pre>
  
  <p>But I want the "Instance"/"TenantId" value by specifically mentioning either of the text .</p>