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