I read somewhere that order of keys in javascript objects is not guaranteed. Like browsers can decide to return whatever they feel like.
And that there is a new type of object in js called Map that allows you to have ordered objects.
But how do I use that when I send data from the server to the browser? There is no way to pass objects, I have to stringify with json and then the Map class becomes lost in the browser