I\'m trying to extract elements from a JSON file using javascript, however I\'m getting an error saying it can not load the JSON file.
This is what my code looks lik
d3.json is meant to load data through HTTP. As @Quentin said, you can set up a local server to serve the data over HTTP.
For development like this I use firefox, it seems to be more permissive when it comes to local cross origin requests than chrome. Alternatively you can use http://tributary.io/
Example with your code: http://tributary.io/inlet/5776228