title: jsTree 3.0.2 - How to pass parameter to aspx webmethod
body: <p>I'm trying to pass a parameter from jsTree 3.0.2 to a web method on an aspx page but it is not hitting the web method.  It does however work when there are no parameters.  Can anyone point out the error of my ways?</p>
  
  <p><strong>With parameter (not working):</strong></p>
  
  <pre><code>[WebMethod]
  [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
  public static IEnumerable&lt;JsTreeNode&gt; GetAll(string id)
  {
      // method does not get called
  }
  
  $("#jsTreeTest").jstree({
      "core": {
          "data": {
              "url": "MyPage.aspx/GetAll",
              "type": 'POST',
              "dataType": 'JSON',
              "contentType": 'application/json;',
              'data': function (node) {
                  return { 'id': "01" };
              }
          }
      }
  });
  </code></pre>
  
  <p><strong>Without parameter (Working):</strong></p>
  
  <pre><code>[WebMethod]
  [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
  public static IEnumerable&lt;JsTreeNode&gt; GetAll()
  {
      // successfully calls method
  }
  
  $("#jsTreeTest").jstree({
      "core": {
          "data": {
              "url": "MyPage.aspx/GetAll",
              "type": 'POST',
              "dataType": 'JSON',
              "contentType": 'application/json;',
              "data": function (node) { return {}; }
          }
      }
  });
  </code></pre>
  
  <p>Thank you.</p>