Iterate JSON object with changing key name
<p>Is it possible to iterate over a JSON object where the keys contains an incrementing number?</p>

<p>The JSON in question is below:</p>

<pre><code>{
  key0: 'adbid1,23',
  key1: 'adbid2,21',
  key2: 'adbid3,191',
}
</code></pre>

<p>Here is my code:</p>

<pre><code>for (var i = 0; i &lt; objectLength; i++) {
  var submitray = query.key[i].split(","); //error
  var qid = submitray[0];
  var userAnswer = submitray[1];
}
</code></pre>