title: Import '.json' extension in ES6 Node.js throws an error
body: <p>We're trying to use the new ways of exporting and importing modules for ES6 with Node.js. It's important for us to get the version number from the <code>package.json</code> file. The following code should do that:</p>
  <pre class="lang-js prettyprint-override"><code>import {name, version} from '../../package.json'
  </code></pre>
  <p>However, on execution the following error is thrown:</p>
  <pre><code>TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension &quot;.json&quot; for T:\ICP\package.json imported from T:\ICP\src\controllers\about.js
  </code></pre>
  <p>Is there something we're missing?<br />
  Is the extension <code>.json</code> not supported?<br />
  Is there another way to retrieve this information using Node.js 13+?</p>