I have a JSON like this:
var arrStages = [
{ "strID" : "ID-0001" , "intStageNum" : 1 , "strNumOfDays": 1 },
{ "strID" : "ID-0003" , "intStageNum" : 3 , "strNumOfDays": 14},
{ "strID" : "ID-0002" , "intStageNum" : 2 , "strNumOfDays": 3 },
{ "strID" : "ID-0006" , "intStageNum" : 6 , "strNumOfDays": 3 },
{ "strID" : "ID-0004" , "intStageNum" : 4 , "strNumOfDays": 3 },
{ "strID" : "ID-0005" , "intStageNum" : 5 , "strNumOfDays": 3 },
];
How can I get the value of a specific attribute of each record (intStageNum for example) but I have to do it backwards. I have to start the loop from the last record which is
{ "strID" : "ID-0005" , "intStageNum" : 5 , "strNumOfDays": 3 }
Is there any way to do this?