News for hackers. Stuff that matters.
Re:Toward Modern Web Apps with ECMAScript 6 by Raphael on Monday August 19, 2013 @08:29PM (#6240844)
If you want to use native JSON, store it as an object with a string.

{ "small": 2, "large": { "bignum": "-9223372036854775807.4237482374983253298159" } }

Then make sure to replace or treat the object as a big number. Granted, it is more busywork.

Re:Toward Modern Web Apps with ECMAScript 6 by rpedela on Monday August 19, 2013 @10:39PM (#6241364)
That is fine if the JSON consumer and producer are Javascript. What happens when the producer is a language that handles large numbers correctly? The numbers are rounded in Javascript.