title: Getting JSON data of JSTree, and it's metadata
body: <p>We're using jstree for a navigation menu editor, and have been assigning metadata to the nodes of the tree like this:</p>
  
  <pre><code>var data = currentNode.data("jstree");
  data.title = textBoxTitle.val();
  data.linkType = textBoxLink.val();
  </code></pre>
  
  <p>I can see that the <code>data</code> object contains the relevant properties, but not too sure where jquery keeps the associated data after this point.</p>
  
  <p>When we come to save the data (serializing it to our server-side language), the metadata seems to be ignored...</p>
  
  <pre><code>var json = jQuery.jstree._reference(tree).get_json();
  var jsonString = JSON.stringify(json);
  </code></pre>
  
  <p>The <code>json</code> object is inspected to have no property describing the metadata.</p>
  
  <p><strong>How do we serialize the object along with its metadata?</strong></p>
  
  <p>Thanks in advance,</p>
  
  <ul>
  <li>Greg.</li>
  </ul>