我有一个响应api,我需要数组中对象的特定元素。
{
"id": 61,
"roleName": "ADMIN",
"description": "ADMIN",
"permissions": [
{
"id": 23,
"permissionName": "addPermission",
"description": "addPermission"
},
{
"id": 13,
"permissionName": "updateTest",
"description": "updateTest"
}
]
}
我希望在Angular打字稿中输出为"permissions": ["addPermission","updateTest"]
请帮助。谢谢