{"newsalert":[{"newslist":{"1":{"newsid" :"4321","headline" :"Great White Shark Found","newscode" :"GWS","newstime" :"10:04:32"},"2":{"newsid" :"8031","headline" :"Polar Bear Escaped","newscode" :"PBE","newstime" :"09:28:03"}}}]}
var dt = JSON.parse(json_string);
var value = dt.newsalert[0].newslist.headline;
console.log(value); // Undefined result
I am having a hard time figuring out how to extract the newslist which is inside the array newsalert. Need to extract the properties newsid, headline, newscode.
Thank you :)