fetch('sample.json')
.then(response => response.json())
.then(data => {
console.log(data);
return response.json();
});