I've got an object from server and i want to read this within ionic2
typescript
.
my Question:
How i can read this Object for each key getting their value ?
Example:
ionic
list with header :
in this case Header = key1 , key2 , key3
and the value
is the values
of every key
Header = key1
items1
items1
items1
Header2 = key2
items2
items2
items2..
The 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"
}
],
}
}