I wanna show the whole object inside a paragraph called \"demo\", and i want the object to be shown similar to the way that it will be in the console. But instead of that it ret
Try and use this:
document.getElementById("demo").innerHTML = JSON.stringify(obj[x])