title: Access jstree metadata in double-click and ajax calls
body: <p>I'm using the jQuery jsTree plugin to create a tree view. It is populated dynamically with json data, where each node contains metadata. When I expand a node I would like to be able to access node metadata and pass it as part of the AJAX call for new json data. I also want to access the metadata when I double-click a node. Can someone suggest what code I need to insert into the code examples below?</p>
  
  <pre><code>$("#tree").jstree({ 
      "json_data" : {
          "ajax": {
              "url": "/url",
              "data": function(n) {
                  // NEED METADATA HERE
              }
          }
      }
  });
  
  $("#tree").delegate("a", "dblclick", function(e) {
      // NEED METADATA HERE
  });
  </code></pre>