How to read [object Object] returned by Ajax
I have
- var list = [someID, name, email, "0"];
dataToSend = JSON.stringify({ list: list });
$.ajax({
type: "POST",
url: "metodos.aspx/sendEmailYCrear",
contentType: "application/json; charset=utf-8",
data: dataToSend,
dataType: "json",
success: AjaxOkAndAdd,
error: AjaxFailedEmail
});
Which sends the data to the URL ok. I process everything on the C# code behind with no problem.
But the returned value (I create a string to return some values) is recognized as an [object Object] and I cant read the result! (actually I don't know how)
Any suggestion?
Thanks!