How can i extract the data? I need the circuitName, date, raceName, round, season and time
var xhr = new XMLHttpRequest;
xhr.onreadystatechange = function(){
if(this.readyState == 4 && this.status == 200){
var json = JSON.parse(xhr.responseText);
var yourData = json.MRData;
document.getElementById('playlist').innerHTML = yourData;
}
};
xhr.open("GET", "http://ergast.com/api/f1/current/next.json", true);
xhr.send();