open a local .json file D3 code example Example: d3 not reading json d3.json("file.json").then(function(data){ console.log(data)});