title: Flutter API how can i get the data from devices in this JSON with http Plugin
body: <p>Hello guys i want to know how can i get the data from devices in this JSON file below.</p>
  <p>My JSON:</p>
  <pre><code>{
     &quot;status&quot;:&quot;UPDATE&quot;,
     &quot;data&quot;:{
    &quot;version&quot;:&quot;2&quot;,
    &quot;modDate&quot;:&quot;2021-12-22T17:33:59+0100&quot;,
    &quot;languages&quot;:[
       &quot;DE&quot;,
       &quot;EN&quot;
    ],
    &quot;devices&quot;:[
       {
          &quot;id&quot;:126,
          &quot;uuid&quot;:&quot;b9407f30-f5f8-466e-aff9-25556b57fe6d&quot;,
          &quot;ma&quot;:600,
          &quot;mi&quot;:33815
       },
       {
          &quot;id&quot;:129,
          &quot;uuid&quot;:&quot;b9407f30-f5f8-466e-aff9-25556b57fe6d&quot;,
          &quot;ma&quot;:600,
          &quot;mi&quot;:28664
       },
  </code></pre>
  <p>My Method:</p>
  <pre><code>Future&lt;void&gt; getDaten() async {
  final response =
        await http.get(Uri.parse(&quot;https://blablabla.de/index.php?id=7&amp;version=2&quot;));
  
    final extractedData = json.decode(response.body) as Map&lt;String, dynamic&gt;;
    print(extractedData);
    extractedData.forEach((id, data) {
      print(id);
      print(data[&quot;devices&quot;]);
    });
  
  
  }
  </code></pre>
  <p>i tried with extractedData[&quot;data&quot;] and something else but it doesnt work.</p>
  <p>at this actual code i get this Error</p>
  <pre><code>E/flutter (19705): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index'
  </code></pre>