title: Convert Json to array Angular2 js with type script
body: <p>I have the json data i want to convert to an array with the specified keys.</p>
  
  <pre><code>[
    {"id":1,"url": "http://test.com"},
    {"id":2,"url":"https://ad.com/"},
    {"id":3,"url":"https://ad12.com/"},
    {"id":4,"url":"https://ad12.com/"}
  ]
  </code></pre>
  
  <h1>Code:</h1>
  
  <pre><code> http.get('', { headers: ''})
       .map(var response =&gt; response.json();
       return response.map(d =&gt; {
       return new class(d.url);
      }););
  </code></pre>
  
  <p>I need only url key values.</p>
  
  <pre><code>Output:`["http://test.com", "http://ad.com", "http://ad12.com"]
  </code></pre>
  
  <p>`</p>