I need to extract only the 'firstName' values from the JSON data below using an Angular HttpGet method.
[
{
"id": "65664546",
"name": "Employee 1",
"contacts":
{
"id": "56546564",
"firstName": "James",
"lastName": "Carter",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6506041711001754555425020a0a0209004b060a08">[email protected]</a>"
}
},
{
"id": "65664547",
"name": "Employee 2",
"contacts":
{
"id": "56546565",
"firstName": "Steve",
"lastName": "Smith",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="46352b2f322e3577767706212929212a236825292b">[email protected]</a>"
}
},
{
"id": "65664548",
"name": "Employee 3",
"contacts":
{
"id": "56546566",
"firstName": "Anna",
"lastName": "Marcus",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6805091a0b1d1b595859280f07070f040d460b0705">[email protected]</a>"
}
}
]
Can you provide guidance on how the Httpget method and subscribe method for this extraction should be written?