Flutter json Decoding _TypeError (type 'List<dynamic>' is not a subtype of type 'Map<dynamic, dynamic>') : <p>So this error I understand kind of what it is, and WHAT I need to do, but I don't understands HOW to do what I'm trying to do.</p>

<p>So I'm using an html api server-call, which returns a jsonEncoded List of Map objects.</p>

<p>The size of each list CAN (and will) change, so I cannot have a function that just checks and decodes the first few or something.  Also each Map object may contain different information, so I can't go making it parse statically.  I need to jsonDecode the entire list, and convert it BACK into a list of separate Map objects so I can use the information contained within the Map objects within the rest of my program.</p>

<p>For privacy reasons, I CANNOT provide an example of the type of object I'm receiving, (Or anything similar) and I apologize for the inconvenience, and increased difficulty of attempting to answer the question.</p>

<p>That said, I do know I just need to have a function that checks how many objects are in the list, splits the response.body into that many pieces, decodes each into a Map  object, and adds it to a list, or array.  </p>

<p>Any information you can provide (Even if not specific code) would help, even if just telling me what commands I should look into.  (Preferably with an example of their syntax, but not mandatory of course).</p>

<p>If you need any information that I CAN provide, I'll be happy to do so. Thank you in advance.</p>
