response.json() fetch 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);
})