<script> function var_dump_rck(data) { var str = ""; $.each(data, function(key, value) { //alert(key + ': ' + value); str += key + ': ' + value + "\n"; }); return str; } </script>