title: Cannot read property '0' of undefined node.js
body: <pre><code>i have the values in taglist variable is like 
  
  {
    "y-range": [{
    "min": "0.0",
    "max": "74.0"
   }],
  "points": {
  "SysPerfDiskTime": [{
          "dateTime": "2016-03-29 03:25:37",
          " value": "7.0"
         }, 
         {
          "dateTime": "2016-03-29 03:25:39",
          "value": "7.0"
         }, 
         {
          "dateTime": "2016-03-29 03:25:41",
          "value": "21.0"
         }, 
         {
          "dateTime": "2016-03-29 03:30:37",
          "value": "2.0"
          }],
  "SysTimeSec": [{
      "dateTime": "2016-03-29 03:25:37",
      "value": "37.0"
      }, 
      {
          "dateTime": "2016-03-29 03:25:39",
          "value": "39.0"
       }, 
       {
          "dateTime": "2016-03-29 03:25:41",
          "value": "41.0"
       }, 
       {
          "dateTime": "2016-03-29 03:25:43",
          "value": "43.0"
        },
        {
          "dateTime": "2016-03-29 03:25:45",
          "value": "45.0"
        }, 
        {
          "dateTime": "2016-03-29 03:25:47",
          "value": "47.0"
        }, 
        {
          "dateTime": "2016-03-29 03:25:49",
          "value": "49.0"
       }, 
       {
          "dateTime": "2016-03-29 03:25:51",
          "value": "51.0"
      }, 
      {
          "dateTime": "2016-03-29 03:30:37",
          "value": "37.0"
      }]
  }}
  </code></pre>
  
  <p>and i am using the below code to fetch the points data in ejs file</p>
  
  <pre><code>  &lt;% for (var i=0; i &lt; tags.length; i++)
    {
    console.log(tags[i]);
   var data= points.points.tags[i];
   console.log(data);
    }
    %&gt;
  </code></pre>
  
  <p>tag variable have data [ 'SysPerfDiskTime', 'SysTimeSec' ]</p>
  
  <p>what is the best way to get the points datafrom json object.</p>