The incoming parameter is incorrect.
[{"SerialNumber":1,"LabParameterName":"Hemoglobin","LabValue":7.80},{"SerialNumber":2,"LabParameterName":"ESR","LabValue":10.00},{"SerialNumber":3,"LabParameterName":"Total WBC Count","LabValue":5.00},{"SerialNumber":18,"LabParameterName":"Neutrophils","LabValue":200.0}]
Simply create a new class (new file to hold the class) which looks like the following:
public class LabData{
public int SerialNumber {get;set;}
public String LabParameterName {get;set;}
public float LabValue {get;set;}
}
Note: Each property that we add MUST match the names in the JSON
exactly.
After that, change your incoming parameter so it looks like the following:
public bool POSTData(List<LabData> inLabData, string url)
{
...
...
I'm not sure why I don't really see your Controller but you'll have to work that out yourself.
I'm assuming this WebAPI is created in C# .NET Web API.