News for hackers. Stuff that matters.
Re:RJSON: compress JSON to JSON by ZenPsycho on Tuesday June 05, 2012 @09:19AM (#4068505)
that is only enough to make it seem like it works okay. But as I said, there's nothing in the JSON spec that obligates any intervening party to preserve the order of the keys in the object.
Re:RJSON: compress JSON to JSON by dogada on Tuesday June 05, 2012 @12:37PM (#4069363)
It doesn't matter. Even if order of keys will be changed somewhere in the middle during JSON.strigify, as schema id will be always used keys sorted alphabetically and object values are always stored in the same order as keys sorted: https://github.com/dogada/RJSON/blob/master/rjson.js#L213