Hacker News new | ask | show | jobs
by gdprrrr 1036 days ago
Is ordering of the keys guaranteed to be the same as in the literal?
2 comments

Order should be preserved up to the Handler. Some Handlers e.g. JSONHandler produce output with key order explicitly undefined.
That’s a good point. I think it would be random without some sorting shenanigans.