|There's more than one way to do things|
Re^2: Outputting JSON with sorted names/keysby afoken (Canon)
|on Jan 26, 2020 at 19:01 UTC||Need Help??|
I seem to remember that the specs are unclear if sorted hashes (aka objects) are allowed in JSON.
https://www.json.org/ is quite clear:
So, "objects" are not sorted, they have no implied order, but you are free to write them out sorted by any criteria you like. But you should not expect that the ordering is retained.
BTW: I think the name "object" is an unfortunate choice, because it is no object in the sense of object-oriented programming.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)