I am looking to fetch all the 'firstName's only from the below JSON data in Angular HttpGet method.
[
{
"id": "65664546",
"name": "Employee 1",
"contacts":
{
"id": "56546564",
"firstName": "James",
"lastName": "Carter",
"email": "[email protected]"
}
},
{
"id": "65664547",
"name": "Employee 2",
"contacts":
{
"id": "56546565",
"firstName": "Steve",
"lastName": "Smith",
"email": "[email protected]"
}
},
{
"id": "65664548",
"name": "Employee 3",
"contacts":
{
"id": "56546566",
"firstName": "Anna",
"lastName": "Marcus",
"email": "[email protected]"
}
}
]
Please can you advise, what would the Httpget method and subscribe method for it look like.