Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #prety #html #json #data
ADD COMMENT
Topic
Name
4+9 =