I've got usual JS array of ints.
put it into object, and put that object into another object

var scales = [1 ,2, 3 ,4 ,5 ];
var obj1 = {scales: scales};
var obj2 = {mapObject: obj1};
I did Ext.Encode on obj2, and it works as expected in FF6.
PHP Code:
In IE9 it produces something like this: (I paste only the part with scales array
So it's an object now with keys ordered from 0 to 16, and it blows up my following code.
What can we do about it?