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

So many software problems can be summarized with "All you had to do was nothing!"


Or implement the specification instead of just skimming it. As far as I remember they skipped several safeguards that would have prevented this problem when they implemented the compression algorithm.


Yah, I've used some lame-assed JSON parsers whose authors thought they knew it well enough in their head that they didn't bother looking at the nice spec that laid it all out for them in black and while.


Originally, many years ago, JSON didn't have a complete and unambiguous spec. It was just some webpage on some random website.


Maybe you mean http://web.archive.org/web/20030228034147/http://www.crockfo...? That has a context-free grammar (which omits the syntax for literals), railroad diagrams (which includes it), a prose description, an example JSON document, and a public-domain sample implementation in Java. It's true that there are some holes in the spec, notably the definition of whitespace and the semantics, but it's fairly complete and unambiguous.


Hmm, pretty good actually.


I'm going to steal that.


Steal away!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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