title: Calling asp.net webmethod with params from jquery errors
body: <p>I managed to setup a simple webmethod which i called from jquery and sure enough it returns ... then i added parameters on the method and added the params to jquery but it errors with</p>
  
  <pre><code>        Message":"Invalid JSON primitive: one.","StackTrace":"
  </code></pre>
  
  <p>my signature on my webmethod is like so</p>
  
  <pre><code>    [WebMethod]
      public static string GetDate(string one, string two)
      {
          return "yes";
      }
  </code></pre>
  
  <p>and my jquery is like this, what am i doing wrong?</p>
  
  <pre><code>                $.ajax({
                  type: "POST",
                  url: "MyService.aspx/GetDate",
                  data: { one: "value", two: "value" },
                  contentType: "application/json; charset=utf-8",
                  dataType: "json",
                  success: function(msg) {
                      alert(msg.d);
                  },
                  error: function(msg) {
                  alert('error');
                  }
  
              });
  </code></pre>