I make this ajax request to the url, but the server sends an Unrecognized token 'naejzraieale': was expecting 'null', 'true', 'false' or NaN at [Source: org.eclipse.jetty.server.HttpInput@13367e3; line: 1, column: 25] response Unrecognized token 'naejzraieale': was expecting 'null', 'true', 'false' or NaN at [Source: org.eclipse.jetty.server.HttpInput@13367e3; line: 1, column: 25] Unrecognized token 'naejzraieale': was expecting 'null', 'true', 'false' or NaN at [Source: org.eclipse.jetty.server.HttpInput@13367e3; line: 1, column: 25] .
My Ajax request is as follows
$.ajax({url: "https://jsonparser.mydomain.com", contentType: 'application/json', type: "POST", data :{name : "juzer ali", email : "er.juzerali@gmail.com", how : "Used jQuery.ajax from google chromes developer console", urls : ["https://chrome.google.com/webstore/search/passportpro", "https://chrome.google.com/webstore/detail/ffimgldnoigmlcofmfkfcjechbdkipph", "https://github.com/juzerali", "https://docs.google.com/document/d/1BXOwXojdKwghZ3nvnfPeleEgjv0whJVWVXtQMwcXLiA/edit?pli=1", "authagentpro.appspot.com"]} });
EDIT: Pay attention to Unrecognized token 'naejzraieale': j and r in this error line from the name property of the object that I pass in the data. When I use letters, I get (Unrecognized token 'naeJZRAIeale': was expecting 'null', 'true',)
json jquery ajax
Juzer ali
source share