fetch('dolgozok.json', {mode: 'no-cors'}) .then(response => response.text()) .then(data => { console.log(JSON.parse(data)) }) .catch(error => { console.log('Hiba: ' + error) })