An object is an unordered collection of zero or more name/value pairs, where a name is a string and a value is a string, number, boolean, null, object, or array.
Basically, you can never count on any specific order of items in an object. Different libraries and different languages may choose to preserve order, or not (some may even randomize the order to prevent developers from relying upon any defined behavior).