title: TypeScript+SystemJS using JSON and Text plugins
body: <p>Using <em>TypeScript</em> with <em>SystemJS</em>, how can I import a <em>JSON</em> file using <code>plugin-json</code>?</p>
  
  <p>If I write <code>System.import('myjson.json!json').then(...)</code> then it imports it asynchronously and not as a part of <code>System.register([...])</code>.</p>
  
  <p>So, how can I import a JSON file as a part of <code>System.register([...])</code> and convincing <em>TypeScript</em> to agree to this? (without <code>then</code> <em>Promise</em> syntax).</p>
  
  <p><strong>Note:</strong>
  I'm using the <code>tsc</code> flag <code>-m system</code></p>
  
  <hr>
  
  <h2>Update:</h2>
  
  <p>A possible solution is to use the <code>-m umd</code> option for <code>tsc</code> instead of <code>-m system</code>, then I can do the following:</p>
  
  <pre><code>/// &lt;reference path="typings/requirejs/require.d.ts" /&gt;
  var myJson = require('myJson.json!json')
  </code></pre>
  
  <p>However, still waiting for an answer regarding usage of <code>-m system</code>.</p>