This is my code, I have pushed the data into data[], but all the data showing the same content which is the last.
var myObj = {};
var data = [];
for (var kl = 0; kl < reportCriteriaIdData.length; kl++) {
myObj["id"] = [myId];
myObj[thisobj.scFilterLabel[0]] = [reportCriteriaIdData[kl].text];
myObj["label"] = [reportCriteriaIdData[kl].text];
myObj["index"] = [kl];
data.push(myObj);
}