I have the json data i want to convert to an array with the specified keys.
[
{"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:
http.get('', { headers: ''})
.map(var response => response.json();
return response.map(d => {
return new class(d.url);
}););
I need only url key values.
Output:`["http://test.com", "http://ad.com", "http://ad12.com"]
`