Add 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


Review URL: http://codereview.chromium.org/9016024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125705 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: ba4fb5addfd5c0c824491e8ae11743c5fc31cdb3
3 files changed
tree: 10ed720226fec4bfc155e861fc1e1874d3fdab15
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/