title: Importing json; Typescript error: Module has no exported member
body: <p>I'm trying to import a .json file into my Angular8 project, but for some reason I keep getting the 'Module has no exported member' error.</p>
  
  <p>I tried to simplify the code, but no result this is what I have.</p>
  
  <p>First I added this in the compilerOptions object (tsconfig.json)
  "resolveJsonModule": true,
  "esModuleInterop": true,</p>
  
  <pre><code>// assests/example.json
  {
    "name": "Spaghetti",
    "desc": "Vegetarische spaghetti bolgnese",
    "rating": 3.7
  }
  
  // recipe component
  import { example } from '../../../assets/example.json';
  
    constructor() {
      console.log(example.name);
    }
  </code></pre>
  
  <p>I keep getting this error:
  Module '"@angular/recipe-app/src/assets/example"' has no exported member 'example'.ts(2305)</p>
  
  <p>What am I doing wrong?</p>