title: Azure Functions - array of objects in local.settings.json
body: <p>I am trying to implement an array of JSON objects in my local.settings.json file for my Azure function. The default file looks like this:</p>
  <pre><code>{
    &quot;IsEncrypted&quot;: false,
    &quot;Values&quot;: {
      &quot;AzureWebJobsStorage&quot;: &quot;Default&quot;,
      &quot;AzureWebJobsDashboard&quot;: &quot;Default&quot;,
      &quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet&quot;,
    }
  </code></pre>
  <p>I know that any values added to the values section can be extracted in my .cs file using Environment.GetVariable(). However I would like to add an array like this:</p>
  <pre><code>{
    &quot;IsEncrypted&quot;: false,
    &quot;Values&quot;: {
      &quot;AzureWebJobsStorage&quot;: &quot;Default&quot;,
      &quot;AzureWebJobsDashboard&quot;: &quot;Default&quot;,
      &quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet&quot;,
    },
    &quot;data&quot;: [
      {
        &quot;attribute&quot; : &quot;details&quot;
        &quot;attribute2&quot;: &quot;details&quot;
      },
      {
        &quot;attribute&quot; : &quot;details&quot;
        &quot;attribute2&quot;: &quot;details&quot;
      }
    ]
  }
  </code></pre>
  <p>I don't think it's possible to add this data array to the values section, since it's expected to be a dictionary. How can I access the data array in my .cs file? I would like it to be in this format, due to the ease of adding objects when needed and the code will handle the changes with a loop since it is an array.</p>