I'm new and learning JSON but I have been having an issue with displaying some API results:
$.getJSON(url, function (data) { enText = data.data.count; arText = data.data.matches.text; document.getElementById('verseText').innerHTML = 'Matches: '+enText+''; document.getElementById('demo').innerHTML = arText; }) enText works fine but how do I list the text of all the matches using JSON (above) into an HTML list assuming this is the endpoint: http://api.alquran.cloud/v1/search/abraham/all/en