After successfully importing data from a JSON file that was an Array, I've encountered a new challenge - my variable is now an object. My goal is to push all the questions from the object into an array and then display them on the HTML document. You can find the link to the JSON file in the code below.
Here is the JS code:
const myjson = 'http://tnij.xyz/bj5'; // LINK TO JSON FILE!
const questions = [];
fetch(myjson)
.then(blob => blob.json('questions'))
.then(data => questions.push(data))
console.log(questions);