When i read a json object it return me
Cannot read properties of undefined (reading '0')
Someone can help me ? i tested few things but no one is working
this is my code :
fetch('https://api.hyper.co/v6/licenses?page=1&limit=100', options)
.then(response => json = response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
console.log(json['data'][0]['email'])
I want to get email of a json object response of an api