Hacker News new | past | comments | ask | show | jobs | submit login

Any JSON parser that re-orders array contents is broken. Just like any JSON parser that reverses the letters of your strings is broken. For objects, you generally shouldn't rely on them being in any particular order when you iterate them. I believe perl intentionally randomizes the order to discourage you from relying on it whereas python and ruby now promise they'll be in insertion order.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: