Answers for "display prety html json data"

0

display prety html json data

var data = {
  "data": {
    "x": "1",
    "y": "1",
    "url": "http://url.com"
  },
  "event": "start",
  "show": 1,
  "id": 50
}


document.getElementById("json").textContent = JSON.stringify(data, undefined, 2);
Posted by: Guest on June-06-2021

Code answers related to "display prety html json data"

Code answers related to "Javascript"

Browse Popular Code Answers by Language