I'm using Angular 4, I've made a call to an api which returns an array of objects.

Then I tried to get specific data by referencing `res.name` but for some reason I get undefined so I tried `res[0]name` and `res['name']` which returns only the first name but I want all the names from the array. 

Here is my array:

```
[{"name":"joey","surname":"jackson","email":"joey@gmail.com","phone":"0815342119"}, 
{"name":"Tim","surname":"Muller","email":"tim@gmail.com","phone":""}, 
{"name":"Kim","surname":"Van Dam","email":"kim@gmail.com","phone":""},
{"name":"Lyn","surname":"Davids","email":"lyn@gmail.com","phone":""}]

```