I tried to get the data from the json file with javascript but it doesn't output the data here is my code:
fetch('https://raw.githubusercontent.com/trvodi/test/main/json1.json')
  .then((res) => res.json())
  .then((data) => {
var json = data;
var i;
    var iLength = json.data.item.length;
    for (i = 0; i < iLength; i++) {
        alert(json.data.item[i].FromMember);
    }
}).catch((err) => {
    console.log(err)
  })please help me. thank you
 
    