I'm trying to send my array object through ajax using the jQuery .get method, but when it sends, ids show up as multiple parameters and I'm not sure if that's the way to do it.

Here is my code:

Code JavaScript:
 
var val = [];
$(':checkbox:checked').each(function(i){
     val[i] = $(this).attr('id').substring(6);
});
 
$.get("/assets/ajax/pm_change_status.php", { s: sess_id(), 'ids[]': val } );