Can we loop through a JSON object with keys that contain sequential numbers?
Below is the specific JSON object being referenced:
{
key0: 'adbid1,23',
key1: 'adbid2,21',
key2: 'adbid3,191',
}
This is the code I am using:
for (var i = 0; i < objectLength; i++) {
var submitray = query.key[i].split(","); //error
var qid = submitray[0];
var userAnswer = submitray[1];
}