title: Parse JSON array in Typescript
body: <p>i have a JSON response from remote server in this way:</p>
  
  <pre><code>{
    "string": [
      {
        "id": 223,
        "name": "String",
        "sug": "string",
        "description": "string",
        "jId": 530,
        "pcs": [{
          "id": 24723,
          "name": "String",
          "sug": "string"
        }]
      }, {
        "id": 247944,
        "name": "String",
        "sug": "string",
        "description": "string",
        "jlId": 531,
        "pcs": [{
          "id": 24744,
          "name": "String",
          "sug": "string"
        }]
      }
    ]
  }
  </code></pre>
  
  <p>In order to parse the response, to list out the "name" &amp; "description", i have written this code out:</p>
  
  <pre><code>interface MyObj {
    name: string
    desc: string
  }
  let obj: MyObj = JSON.parse(data.toString());
  </code></pre>
  
  <p>My question is how do i obtain the name and description into a list that can be displayed. </p>