title: How to post JSON array in Flutter
body: <p>I want to send data to my API URL. How to post below JSON array?</p>
  
  <p>The data I want to send is this:</p>
  
  <pre><code>  requests: [
              {
                  OptionID: [
                  {
                      ID: 'A1'
                  }
                  ],
                  content: {
                  img: 'image'
                  }
              }
              ]
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>var data = "requests: [{ OptionID: [ {ID: 'A1'}], content: { img: 'image'}}]";
  http.Response response = await http.post("https://MY_API_URL", body: data);
  print(response.body);
  </code></pre>
  
  <p>Now I have an error about Invalid Argument because I don't know how to send a JSON array.</p>
  
  <p>Can anyone help me?</p>