Im getting a Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
var mydata = JSON.parse("file.json");
console.log(myJSON)
Below is an example of the data in the JSON file.
[[1,1,0,1,1,0,0,0,1,1,1,1,1,1],
[1,0,0,1,1,0,0,0,1,1,1,1,1,0],
[1,0,0,1,1,0,1,1,1,1,1,1,1,1],
[1,0,0,1,1,0,0,0,1,1,1,1,1,0], .... etc]
How can I retrieve the data from this JSON file in JS?
Is it not possible to write a JSON like this?
When I open the file in the browser, it looks like a neat JSON array?
