couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirkjan Ochtman <dirk...@ochtman.nl>
Subject Re: [VOTE] Apache CouchDB 1.2.0 release, first round
Date Sun, 12 Feb 2012 18:47:27 GMT
On Sun, Feb 12, 2012 at 18:30, Robert Newson <robert.newson@gmail.com> wrote:
> I'm in favor of adding it to breaking changes and keeping the new
> behaviour. Both ejson and jiffy use %g to encode numbers. This favors
> a shorter encoding. On reflection, this is more desirable than
> pretending that json distinguishes between ints and floats.

JSON does distinguish between those: a JSON number that includes a "."
character obviously denotes a float, while one with a "." character
denotes an integer.

The JSON spec does not include any information on how numbers are to
be interpreted, so CouchDB should try to refrain from guessing.

Cheers,

Dirkjan

Mime
View raw message