title: How to read sub array of values from appsetting.json using IConfiguration?
body: <p>What I need is to get the GroupAssets SearchPath value by matching the Name value to a value from a database query. At this point I am just trying to pull the GroupAssets into an array.</p>
  <p>appsettings.json</p>
  <pre><code>&quot;Production&quot;: {
      &quot;PrintJobs&quot;: [
        {
          &quot;SalesCategory&quot;: &quot;5084&quot;,
          &quot;JobType&quot;: 1,
          &quot;SubJobType&quot;: 5014,
          &quot;ShipVia&quot;: 5019,
          &quot;CSR&quot;: 360,
          &quot;SLAHours&quot;: 216,
          &quot;DaysToArrive&quot;: 5,
          &quot;Note&quot;: [ &quot;&quot; ],
  
          &quot;GroupAssets&quot;: [
            {
              &quot;Name&quot;: &quot;MapImage&quot;,
              &quot;SearchPath&quot;: &quot;\\\\Server\\Path&quot;,
              &quot;PrintAssetType&quot;: &quot;Image&quot;,
              &quot;ValidExtensions&quot;: [ &quot;jpg&quot; ]
            },
            {
              &quot;Name&quot;: &quot;PageImage&quot;,
              &quot;SearchPath&quot;: &quot;\\\\Server\\Path&quot;,
              &quot;PrintAssetType&quot;: &quot;Image&quot;,
              &quot;ValidExtensions&quot;: [ &quot;jpg&quot; ],
              &quot;CreativeCodes&quot;: [ &quot;M1YV&quot;, &quot;M1YW&quot; ]
            },
            {
              &quot;Name&quot;: &quot;ItineraryPage&quot;,
              &quot;SearchPath&quot;: &quot;\\\\Server\\Path&quot;,
              &quot;PrintAssetType&quot;: &quot;Pdf&quot;,
              &quot;ValidExtensions&quot;: [ &quot;pdf&quot; ],
              &quot;CreativeCodes&quot;: [ &quot;M1YV&quot;, &quot;M1YW&quot; ]
            }
  
          ],
       }
  }
  </code></pre>
  <p>My code:</p>
  <pre><code>var myArray = _config.GetSection(&quot;Production:PrintJobs&quot;).GetChildren();
  
  public class PrintAssetDefns
  {
     public string Name { get; set; }
     public string SearchPath { get; set; }
     public string PrintAssetType { get; set; }
     public string ValidExtensions { get; set; }
     public string CreativeCodes { get; set; }
  }
  </code></pre>