I saw a similar question but it did not resolve my issue. I have a JSON web service in an ASMX file;
The code for the web method
[WebMethod]
Make sure your service class has [ScriptService] attribute. This attribute is not added by default.