Делаю запрос:
const response: AxiosResponse<Response[]> = await this.httpService
.get(url)
.toPromise();
Получаю ответ:
{
"status": "1",
"message": "OK",
"result": [
{
"id": "1",
"firstName": "John",
"lastName": "Doe",
"timeStamp": "1678781783",
},
{
"id": "2",
"firstName": "Jane",
"lastName": "Doe",
"timeStamp": "1678781783",
},
{
"id": "3",
"firstName": "Victor",
"lastName": "D",
"timeStamp": "1678781783",
}
}
Подскажите, как взять только
firstName и
lastName чтобы получилось:
{
{
"firstName": "John",
"lastName": "Doe",
},
{
"firstName": "Jane",
"lastName": "Doe",
},
{
"firstName": "Victor",
"lastName": "D",
}
}