title: how to parse json to angular 7 object?
body: <p>I am trying to consume a web API that returns the following data</p>
  
  <pre><code>{
  "FileStatuses": {
      "FileStatus": [
          {
              "accessTime": 0,
              "blockSize": 0,
              "childrenNum": 13,
              "fileId": 16396,
              "group": "supergroup",
              "length": 0,
              "modificationTime": 1553247533630,
              "owner": "hduser",
              "pathSuffix": "demo-data",
              "permission": "755",
              "replication": 0,
              "storagePolicy": 0,
              "type": "DIRECTORY"
          },
          {
              "accessTime": 0,
              "blockSize": 0,
              "childrenNum": 7,
              "fileId": 16410,
              "group": "supergroup",
              "length": 0,
              "modificationTime": 1550659883380,
              "owner": "hduser",
              "pathSuffix": "instacart",
              "permission": "755",
              "replication": 0,
              "storagePolicy": 0,
              "type": "DIRECTORY"
          }
      ]
  }
  }
  </code></pre>
  
  <p>I created a service like this and the class to parse the json response to it:</p>
  
  <pre><code>  public getHadoopDirList(): Observable&lt;FileStatus[]&gt; {
  return this.http.get&lt;FileStatus[]&gt;(this.webHdfsUrl, {}).pipe(map(data =&gt; data));
    }
  
     export class FileStatus {
  accessTime: number;
  blockSize: number;
  childNum: number;
  fileId: number;
  group: string;
  length: number;
  modificationTime: number;
  owner: string;
  pathSuffix: string;
  permission: string;
  replication: number;
  storagePolicy: number;
  type: string;
  }
  </code></pre>
  
  <p>i subscribed to it on the component but when i try to iterate over it on the template i get the following <strong>ERROR Error: Error trying to diff '[object Object]'. Only arrays and iterables are allowed</strong></p>
  
  <p>I think the problem is the way how to map it but I didn't know how to solve it </p>