I am calling a webservice through ajax call and pass array of object to it after stringify it.
Data after stringifying
data = '[{"para1":"pic 1","para2":"drop 1"},{"para1":"pic 2","para2":"drop 2"}]'
$.ajax({
type: 'POST',
url: "path to url/method",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({
"data": data
}),
How to receive it and parse in C# webservice.
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string insertroute(string data){
//how to parse data here
}