1var data = {
2 "data": {
3 "x": "1",
4 "y": "1",
5 "url": "http://url.com"
6 },
7 "event": "start",
8 "show": 1,
9 "id": 50
10}
11
12
13document.getElementById("json").textContent = JSON.stringify(data, undefined, 2);
14
15// <pre id="json"></pre>