Is it possible to iterate over a JSON object where the keys contains an incrementing number?
The JSON in question is below:
{
key0: 'adbid1,23',
key1: 'adbid2,21',
key2: 'adbid3,191',
}
Here is my code:
for (var i = 0; i < objectLength; i++) {
var submitray = query.key[i].split(","); //error
var qid = submitray[0];
var userAnswer = submitray[1];
}