Ok so with this line I can import my json file ES6 style!
import data from ‘./myGraph.json’ assert {type: ‘json’};
console.log(data[0][1])
But heres the catch -
in index.html I have to tell it the source is a module like -
<script type="module" src="sketch.js" ></script>
But then my drawing dissapears !?
I can either have one or the other not both so frustrating. Any ideas ?