title: TypeScript Error - Type '{}' is not an array type or a string type
body: <p>I have the following code:</p>
  
  <pre><code>forkJoin([
      this.restangular.all(this.commonService.getHospitalURI()).getList(),
      this.restangular.all(this.commonService.getAgeGroupURI()).getList()
      ]).subscribe(responses =&gt; {
  
      const hospital_result = responses[0];
      // Error because of the line below
      const agegroup_result = Array.from(responses[1]);
  
      console.log('hospital ' + JSON.stringify(hospital_result))
      console.log('agegroup ' + JSON.stringify(agegroup_result))
  
      for (const productID_hospital of hospital_result[0]['product']) {
  
          for (const productID_agegroup of agegroup_result) {
            // Do Something here
          }
      }
    })
  </code></pre>
  
  <p>I'm using Angular 5, doing a forkjoin to call a response sequentially. This part is completely fine. But the error comes when it is trying to parse the JSON.</p>
  
  <p>I get this error:</p>
  
  <pre><code>src/app/layout/insurance-list/insurance-list.component.ts(75,48): error TS2345: Argument of type '{}' is not assignable to parameter of type 'Iterable&lt;{}&gt;'.
  Property '[Symbol.iterator]' is missing in type '{}'.
  </code></pre>
  
  <p>If I change </p>
  
  <pre><code>const agegroup_result = Array.from(responses[1]);
  </code></pre>
  
  <p>to</p>
  
  <pre><code>const agegroup_result = responses[1];
  </code></pre>
  
  <p>Then I'll get an error:</p>
  
  <pre><code>src/app/layout/insurance-list/insurance-list.component.ts(85,50): error TS2495: Type '{}' is not an array type or a string type.
  </code></pre>
  
  <p>I don't understand why I am having this error. I am parsing the JSON correctly as it returns an array first. I am unable to run my project due to this error.</p>
  
  <p>Edit:</p>
  
  <p>Here is the link to the JSON for agegroup_result:
  <a href="https://plnkr.co/edit/hzkPXqWfGmNNgHuHwAzT?p=catalogue" rel="nofollow noreferrer">https://plnkr.co/edit/hzkPXqWfGmNNgHuHwAzT?p=catalogue</a></p>
  
  <p>It's named as agegroup.json</p>
  
  <p>Edit 2:</p>
  
  <pre><code>console.log(responses[1] instanceof Array)
  </code></pre>
  
  <p>The above code returns true. Response[1] is an Array. </p>