// Loop over the rows in the "query" which is now an array. for (var intRow = 0 ; intRow < arrResults.length ; intRow++){ // Loop over each column and alert. for (var strColumn in arrResults[ intRow ]){ alert( strColumn + " : " + arrResults[ intRow ][ strColumn ] ); } // Or, you can call columns directly. alert( arrResults[ intRow ].id ); alert( arrResults[ intRow ].name ); }