DescriptionAdd a new option to JSONWriter, which instructs it not to append '.0' or
use exponential notation when writing doubles with no fractional part.
This is needed so we can write an integer value larger than what a 32-bit
int will hold using a double, and write the said double in such a way as
to enable external JSON readers (that support int64) to convert it to an
int64 instead of a double.
The other alternative is to add support for int64 in the Value classes and
clients. See http://codereview.chromium.org/8962042
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125705
Patch Set 1 : ... #
Total comments: 4
Patch Set 2 : change name of option #
Total comments: 2
Patch Set 3 : remove excessive comments #Patch Set 4 : rebase #Patch Set 5 : . #
Messages
Total messages: 18 (0 generated)
|