var request = new XMLHttpRequest();
request.open('GET', '/my/url/animation-text.json', true);
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
var obj = JSON.parse(request.responseText);
var titleA = obj.mydata.block-a.title;
hypeDocument.getElementById('yourHypeElementsId').innerHTML = titleA;
} else {
}
};
request.onerror = function() {
};
request.send();
4 Likes