I am making a request to get this JSON , and would like to know how to mount a li using this request
var url = "data.json";
var httpRequest = new XMLHttpRequest();
httpRequest.open("GET", url);
httpRequest.responseType = "json";
httpRequest.addEventListener("readystatechange", function () {
if (httpRequest.readyState == 4){
if (httpRequest.status == 200){
console.log(httpRequest.response);
console.log(httpRequest.response.headDocument);
console.log(httpRequest.response.headDocument.authors);
console.log(httpRequest.response.headDocument.content);
} else {
console.log("fiz algo errado xD")
}
}
});
httpRequest.send();