javascript fetch get json 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);
})