title: Flutter JSON Foreach Text in Cateogories
body: <p>I don't know how to apply foreach loop on json array.</p>
  <p>Here is my example:</p>
  <pre><code>[{
  &quot;categories&quot;: [
          &quot;categorie 1&quot;,
          &quot;categorie 2&quot;,
          &quot;categorie 3&quot;,
          &quot;categorie 4&quot;
      ]
  }]
  </code></pre>
  <p>In Flutter I basicly have this:</p>
  <pre><code>Text(newData[index]['categories'], style: TextStyle(color: Colors.grey.shade600))
  </code></pre>
  <p>How to apply foreach loop on this json array to get <code>&quot;Category 1&quot;</code> in Text widget?</p>