title: How to resolve the issue "unused expression, expected an assignment or function call"?
body: <p>I have tried to import the json file in my react application(App.tsx).</p>
  
  <pre><code>App.tsx
  
  import * as currencies from './currencies.json';
  </code></pre>
  
  <p>My Json file will look like below structure:</p>
  
  <pre><code>{
    "main": {
       "numbers": {
          "currencies": {
           }
        }
     }
  }
  </code></pre>
  
  <p>While running the application, it throws the below error</p>
  
  <p><strong>(1,1): unused expression, expected an assignment or function call</strong></p>
  
  <p>After further analysis, i have added the typings.d.ts file within <strong>src</strong>  folder</p>
  
  <pre><code>declare module "*.json" {
      const value: any;
      export default value;
  }
  </code></pre>
  
  <p>But still we are facing the same issue. Can anyone please suggest how to resolve this?</p>