I am using POST API to send a list of objects like below:
{
"EmpID":1,
"EmpDetailID":2,
"WorkID":3,
"TestDetailID":4,
"QuantityRequired":5
}
I am sending an array of dictionaries, but the web service team has informed me that the dictionary would not work. I have to send it as LIST, but there is no list in Objective C
I tried the following methods:
NSDictionary *dicTest = @{@"EmpID":1,
@"EmpDetailID":2,
@"WorkID":3,
@"TestDetailID":4,
@"QuantityRequired":5
};
[arrTest addObject: dicTest];
I also tried array of arrays with single objects / multiple objects. But nothing is working. POST call is fine only I wanted to send data in LIST form.
How do I need to send the above data in LIST form?