Hacker News new | ask | show | jobs
by Waterluvian 1123 days ago
It also means you can use JSON for incredibly high precision cases by making your parser parse them into a Decimal format. You couldn’t do this if you specified these limitations into the language.

Edit: Omg that story. Eep. I guess if someone provided too-large numbers in a JSON format, you could use a custom parser to accept them as strings or bigints. Still, that must have not been a fun time.

1 comments

Yeah I believe I hand patched Crockford’s json2 parser? It was something like that.