title: how to encode and send to server json list by dio
body: <p>i have class that generate json list this is my class</p>
  
  <pre><code>class Tool{
     String Name;
     bool  selection;
     String englishName;
     Map&lt;String, dynamic&gt; toJson() {
       return {
        'Name': persianName,
        'selection': selection,
        'englishName': englishName
    };
  
   }
  
   }
  
    List&lt;Tool&gt; tools=new List();
   setTool(tool){
     tools.add(tool);
   }
   toolsLength(){
     return tools.length;
   }
  updatetool(index,goal){
    tools[index]=goal;
  }
  getTool(index){
    return tools[index];
  }
  getAllTools(){
    return tools;
  }
  </code></pre>
  
  <p>and this is dio library that send my list to server every thing is ok but my array is into Double quotation in other word my list is string how to pick up double quotation around of json array . if assume my json array hase</p>
  
  <pre><code>    "tools":  [{"name":"jack","selection" : false " ,"englishName":"jock"}]
  </code></pre>
  
  <p>result is :</p>
  
  <pre><code>    "tools": "[{"name":"jack","selection" : false " ,"englishName":"jock"}]"
  </code></pre>
  
  <p>how fix it this is my class for send</p>
  
  <pre><code>FormData formData = new FormData.from({
        "tools":jsonEncode(getAllTools().map((e) =&gt; e.toJson()).toList()) ,
    });
   response = await 
   dio.post("${strings.baseurl}/analyze/$username/$teacher", data: 
   formData);
  print("----------&gt; response is  :"+response.toString());
  </code></pre>