I have a Json objects, which contains one field with date, I need to take it and prepare for other processing, but I don't know how to take just one field from one object, I tried to do that:
app.controller('timerCtrl', function ($scope) {
   var endDate =  $scope.data.list[1].end;// but list[1] prints just list[1].ends value, but how can i get and prepare the fields of other objects?
});
Json-object:
[
{
    "id": "1",
    "name": "New shop",
    "shop": "DNS",
    "begin": "09-05-2017",
    "end":" 12-05-2017"
},
{
    "id": "2",
    "name": "New shop",
    "shop": "M-video",
    "begin":"05-05-2017",
    "end":"15-05-2017"
}
]
 
     
     
    