Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some things in the world of JSON depend on order, too. There is a Microsoft way of indicating the type of an object using a key that must be first in the JSON syntax.


Same situation as above - a JSON parser that ignores order is a valid JSON implementation.


And such a parser could work with that convention. However, if its complementary formatter printed the objects such that that type field doesn't appear first, it wouldn't be correctly implementing the specification.




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

Search: