Presented below is an array:
[{
"title": "Apple iPhone 7 Plus 32 GB",
"category": "phone",
"brand": "apple",
"condition": "Used",
"price": 800,
"id": 0,
"description": "Apple"
}, {
"title": "Apple Ipad Air 32 GB",
"category": "tablet",
"brand": "apple",
"condition": "new",
"price": 1000,
"id": 1,
"description": "Apple"
},{
"title": "Supreme Box Logo Hooded Sweatshirt Navy",
"category": "clothes",
"brand": "Supreme",
"condition": "new",
"price": 1000,
"id": 2,
"description": "Supreme Size M"
},]
Is there a method to extract only the values of category from the aforementioned array and transform them into an array like this?
[{"phone","clothes","tablet"}]