title: How to require .json file with module.exports in nodeJS
body: <p>im used to creating .json files this way </p>
  
  <pre><code>module.exports = [
  {"year":2007,"month":1,"startDate":"2007-01-01","endDate":"2007-01-31"},
  {"year":2007,"month":2,"startDate":"2007-02-01","endDate":"2007-02-28"},
  {"year":2007,"month":3,"startDate":"2007-03-01","endDate":"2007-03-31"},
  ]
  </code></pre>
  
  <p>I then require them like this.</p>
  
  <pre><code>var dates = require('./JSON/dates.json');
  </code></pre>
  
  <p>this has always worked in the past when i was working with nodejs and grunt to build websites. 
  But now im using nodeJS to create a server app i get this message</p>
  
  <p>SyntaxError: G:\Navision Reports\JS ReportServer\JSON\dates.json: Unexpected token message. I dont understand what's going on. It is working perfectly with .js files. </p>
  
  <p>Please anyone knows why this no longer works? I know i could have a json object if i just remove var dates = require('./JSON/dates.json'); and make the file into one json object, but I'd really rather not reorganise all this data. </p>