fetch from json response code example
Example: javascript fetch json
fetch('./yourjson.json')
.then((response) => response.json())
.then((data) => {
console.log(data);
})
fetch('./yourjson.json')
.then((response) => response.json())
.then((data) => {
console.log(data);
})