Anyone know how to post array using http?
var headers = {"Accept": "application/json"};
var url = "https://...."
var response = await http.post(url,
body: {
....
},
I have a param named commentList. I need to pass comment[0], comment[1]... inside body.
How to use for loop inside the body???
for(var i in list){
"comments"+"["+index+"]" = i;
index ++;
}
Here the postman key and value

comment[0],comment[1]. Is the link provided work in my case?