title: How to read a JSON file in Javascript
body: <p>I have a JSON file with following as sample contents</p>
  
  <pre><code>{
      "count": 1, 
      "timestamp": 1257033601, 
      "from": "theybf.com", 
      "to": "w.sharethis.com"
  }
  {
      "count": 1,
      "timestamp": 1257033601,
      "from": "",
      "to": "agohq.org"
  }
  {
      "count": 3, 
      "timestamp": 1257033601, 
      "from": "twistysdownload.com", 
      "to": "adserving.cpxinteractive.com"
  }
  {
      "count": 1, 
      "timestamp": 1257033601, 
      "from": "459.cim.meebo.com", 
      "to": "459.cim.meebo.com"
  }
  {
      "count": 1,
      "timestamp": 1257033601,
      "from": "boards.nbc.com",
      "to": "change.menelgame.pl"
  }
  {
      "count": 1,
      "timestamp": 1257033601,
      "from": "mail3-12.sinamail.sina.com.cn",
      "to": "mail3-12.sinamail.sina.com.cn"
  }
  {
      "count": 3,
      "timestamp": 1257033601,
      "from": "mediafire.com",
      "to": "tag.contextweb.com"
  }
  </code></pre>
  
  <p>These contents are stored in file 'data.json'. I want to read this file and display its details through javascript on a HTML page.</p>
  
  <p>Can someone help me understand how to do it? I am new to Javascript so need help here.</p>