EDIT:
The problem is I need to specify the array indexes dynamically. I cannot put '1', or '2', it will be within a loop:
var current = ....
array[current] = ....
I have this:
array[1] = new Array('A','B','C');
array[2] = new Array('B','A','C');
However, I need to send this to the server using ajax (I'm using jQuery), and the array doesn't seem to be in any state to send.
reason I need to use these indexes 1,2 etc is because I need to be able to overwrite a previous array with a new order if need be. To change the above index 1 I'd do:
array[1] = new Array('C','B','A');
JSON.stringify is returning blank:
{"1":[]}