ColdFusion & AJAX: Converting ColdFusion Objects to Javascript Objects

// 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 );
 
}

For Cut-and-Paste