Answer the question
In order to leave comments, you need to log in
How to output text from json correctly?
json file content
{
"data":
"<h1>Hello everybody, nice to party</h1>"
}
console.log(xhr.JSON.parse(responseText));
Uncaught TypeError: Cannot read property 'parse' of undefined
at XMLHttpRequest.xhr.onreadystatechange
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question