Closed GoogleCodeExporter closed 8 years ago
Original comment by mikechambers
on 7 Nov 2008 at 7:25
The Number conversion is done by the Flash Player top-level Number() conversion
function. When the parser reads numerical values in JSON, it builds a string
representing that number which the Flash Player converts then converts into an
actual
number value. Since Flash Player is limited to just double, int, and uint,
there
really aren't a lot of options here for handling "really large" numbers.
If you want to parse the number as a string and leave it as a string, enclose
it in
quotes:
{"myId":"123456789123456789"}
Original comment by darron.schall
on 19 Nov 2008 at 9:13
Anyone knows of an alternative json library that could handle that case in a
more
graceful way then? When the xml data is coming from third party web services,
we
can't control the format, and don't really want go mock with the returned data
to arbitrarily stringify big numbers....
Original comment by Denis.Am...@gmail.com
on 10 Jan 2009 at 1:13
Original issue reported on code.google.com by
laurent1...@gmail.com
on 15 Jul 2008 at 11:08