"NS_ERROR_DOM_BAD_URI: Access to restricted URI denied"
Specify your .json file relative to your .html file root
Ex:
d3.json("js/forcetree.json", function(json) {
root = json;
update();
});
I was having the same error and the solution is to have your index.html, script.js and data.json in the same directory.