fetch('https://example.com/data.json').then(response => response.json()).then(data => console.log(data));