Inside my file named data.json
, there is a JSON object structure:
{ "k": : "..some object...", "a": [ "...", "bbb" ] }
When working with Node.js, I can easily import this data into a variable using:
let data = require("./data.json");
However, how can I accomplish the same task in Google Chrome browser?