d3 not reading json

JavaScript
d3.json("file.json").then(function(data){ console.log(data)});
Source

Also in JavaScript: