How do you stop Chrome and Opera sorting JSON objects by Index ASC?

Solution 1:

Had same problem, followed dmc's solution but just added a space in front of the int value to make it a string.

The advantage of using a space rather than another non numeric character is that the subsequently POSTed value can be used directly in a mySQL search clause without having to remove it again.

Solution 2:

Different browsers handle objects in different ways, my fault was to try and use the order I built an object as a reference where I shouldn't.