I am trying to parse this json in angular js using ngrepeat but it is not giving length. Can anybody please tell me how to parse this json
{
"item1": {
"timing": "9:15-12:30,15:00-21:15,13:00-14:30",
"price": 45,
"session": "breakfast",
"check": false
},
"item2": {
"timing": "10:15-12:30,15:00-18:15",
"price": 55,
"session": "breakfast",
"check": true
},
"item3": {
"timing": "15:00-18:15",
"price": 25,
"session": "snacks",
"check": true
}
}
UPDATE
<div ng-repeat="tempdata in jsonData">
<div>{{tempdata.timing}}
</div>
<div>{{tempdata.price}}
</div>
....
</div>
I am trying to achieve through ng-repeat but i got stuck Regards
ng-repeatdocs show you how to repeat an object