response.json () Обещание в ожидании
fetch('someurltoAJsonFile.json')
.then(response => response.json())
.then(data => {
console.log(data)
});
Helpless Herring
fetch('someurltoAJsonFile.json')
.then(response => response.json())
.then(data => {
console.log(data)
});