I have implemented an Ajax request on my website, and I am calling the endpoint from a webpage. It always returns 200 OK, but jQuery execut
Your script demands a return in JSON data type.
Try this:
private string test() { JavaScriptSerializer js = new JavaScriptSerializer(); return js.Serialize("hello world"); }