title: How re load json file via requirejs?
body: <p>I'm trying to load json file vie requirejs like the following:</p>
  
  <pre><code>'use strict';
  
  require.config({
      paths: {
          config: '../../configs/config.json'
      }
  });
  
  require([
      'spec/test.js',
  ], function() {
      mocha.run();
  });
  </code></pre>
  
  <p>To be possible require it like the following:</p>
  
  <pre><code>define(function(require, exports, module) {    
      var configJSON = require('config');
  });
  </code></pre>
  
  <p>But unfortunately I get the following error:</p>
  
  <pre><code>&lt;PATH_TO_PROJECT&gt;/configs/config.json.js net::ERR_FILE_NOT_FOUND 
  </code></pre>