title: require a json file results in an error: Cannot find module
body: <p>In a nodej project open in VsCode with <code>checkJs</code> enabled, when a json file is required like </p>
  
  <pre><code>const myFile = require('./my-file.json')
  </code></pre>
  
  <p>This makes an error <code>[ts] Cannot find module</code>. </p>
  
  <p><strong>How is it possible to remove the error warning?</strong></p>
  
  <p>I tried to: </p>
  
  <ol>
  <li><p>add <code>"resolveJsonModule": true</code> to the <code>compilerOptions</code> in <code>jsconfig.json</code>, but it does not work. </p></li>
  <li><p>create a <code>typing.d.ts</code> file with this content: </p>
  
  <p><code>declare module '*.json' {
    const value: any;
    export default value;
  }</code>
  But now, there is an error <code>[ts] Type 'typeof import("*.json")' must have a '[Symbol.iterator]()' method that returns an iterator. [2488]</code></p></li>
  </ol>