NB. This example loads the data by ajax. It does not work if you open this page in the local filesystem.
In this example we load the data from the server using the data-url property on the dom element.
<div id="tree1" data-url="../extra/example_data.json"></div>
$('#tree1').tree();