2 ms·
They are all in disagreement over various edge cases. JSON is just a very weakly specified thing: http://seriot.ch/parsing_json.php http://seriot.ch/parsing_js
by mike_hearn 9y ago
They are all in disagreement over various edge cases. JSON is just a very weakly specified thing:
http://seriot.ch/parsing_json.php http://seriot.ch/parsing_json.php
It's not just JSON by the way. URL parsers also differ in how they handle malformed inputs, with potentially catastrophic results:
https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-Ne...
Basically the entire web stack is made up of protocols that are weakly specified, open to interpretation, lacking reference implementations and are therefore very hack prone.