I am making this ajax request to a url, but server is sending a response Unrecognized token \'naejzraieale\': was expecting \'null\', \'true\', \'false\' or NaN
at [Sourc
before sending data to server you need to encode it in JSON format JSON.stringify and JSON.parse are provided by latest browsers but if any browser doesn't support that then you can use a jquery plugin to do the same http://code.google.com/p/jquery-json/, if you use this plugin then the syntax would be different a little bit
$.ajax({
url: "https://jsonparser.mydomain.com",
type: 'POST',
contentType:'application/json',
data: JSON.stringify({name : "juzer ali",
email : "email@gmail.com",
how : "Used jQuery.ajax from google chromes developer console",
urls : ["https://chrome.google.com/webstore/search/", "https://chrome.google.com/webstore/detail/",
"https://github.com/", "https://docs.google.com/document/d/edit?pli=1", "pro.appspot.com"]}),
dataType:'json'
});