I have an array of JSON strings and I want to pass it to ajax, but I do not know how to send it and how to receive it from the server side, any ideas?
$.ajax(
{
url: "WebS/webServices.aspx/funcion",
type: 'POST',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(parametro),
destroy: true,
success: function (result) {
resultado = result.d;
}
}).done(function () {});
Where parameter is the array of JSON strings (I have tried with JSON.stringify and without it) and I have tried to receive it as:
[WebMethod]
public static string funcion(string parametro)
{
}
But I receive as an error:
"El tipo System.String no se admite para la deserialización de una matriz."
Any idea how I can send it?