I am trying to fetch a object in ionic2
which has key value and i want to read the key and the brand name from it within ionic2
.
so my question :
how i can read the key from the below object ?
{
"status": "success",
"products": {
"Key1": [
{
"entity_id": "448",
"sku": "587",
"name": "name",
"image_url": "587.png",
"price": "15,000",
"qty": 0,
"rating": 0,
"wishlist": false,
"specialprice": "7,500",
"brand": "brandname"
}
],
"Key2": [
{
"entity_id": "448",
"sku": "587",
"name": "name",
"image_url": "587.png",
"price": "15,000",
"qty": 0,
"rating": 0,
"wishlist": false,
"specialprice": "7,500",
"brand": "brandname"
}
],
"Key3": [
{
"entity_id": "448",
"sku": "587",
"name": "name",
"image_url": "587.png",
"price": "15,000",
"qty": 0,
"rating": 0,
"wishlist": false,
"specialprice": "7,500",
"brand": "brandname"
}
],
}
}
please feel free to help me.