Check out example codes for "display object with indentaion in html". It will help you in understanding the concepts better.

Code Example 1

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);

// <pre id="json"></pre>

Learn ReactJs, React Native from akashmittal.com