title: jQuery ajax dataType: "json"
body: <p>Have gone through related questions but none answers my problem.</p>
  
  <p>I'm using asp.net 3.5 and jQuery 1.9. dataType: "json" gives a parser error. If I have it removed or using "text", I'm not able to read string returned from webmethod.</p>
  
  <p>Please help me with an example of a jQuery ajax script to call the method below and display the returned string.</p>
  
  <pre><code>    [WebMethod]
      public static string MyWebMethod(string parm1, string parm2)
      {
          return "success from webmethod";
      }
  </code></pre>
  
  <p>Sorry everybody, it's my mistake. I used "static" in the web method of the web service. Method was not discoverable.</p>