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.
{ "small": 2, "large": { "bignum": "-9223372036854775807.4237482374983253298159" } }
Then make sure to replace or treat the object as a big number. Granted, it is more busywork.