From: | Florian Pflug <fgp(at)phlo(dot)org> |
---|---|
To: | Joey Adams <joeyadams3(dot)14159(at)gmail(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bernd Helmle <mailings(at)oopsware(dot)de>, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, David Fetter <david(at)fetter(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com> |
Subject: | Re: Initial Review: JSON contrib modul was: Re: Another swing at JSON |
Date: | 2011-07-25 08:37:54 |
Message-ID: | FD459E4C-CFD4-4AB3-A5B4-65B504C142C8@phlo.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Jul25, 2011, at 07:35 , Joey Adams wrote:
> On Mon, Jul 25, 2011 at 1:05 AM, Joey Adams <joeyadams3(dot)14159(at)gmail(dot)com> wrote:
>> Should we mimic IEEE floats and preserve -0 versus +0 while treating
>> them as equal? Or should we treat JSON floats like numeric and
>> convert -0 to 0 on input? Or should we do something else? I think
>> converting -0 to 0 would be a bad idea, as it would violate the
>> intuitive assumption that JSON can be used to marshal double-precision
>> floats.
>
> On the other hand, JavaScript's own .toString and JSON.stringify turn
> -0 into 0, so JSON can't marshal -0 around, anyway (in practice). Now
> I think turning -0 into 0 would be fine for canonicalizing numbers in
> json_in.
+1.
best regards,
Florian Pflug
From | Date | Subject | |
---|---|---|---|
Next Message | Florian Pflug | 2011-07-25 10:49:18 | Re: Initial Review: JSON contrib modul was: Re: Another swing at JSON |
Previous Message | Kohei KaiGai | 2011-07-25 08:36:38 | Re: Environment checks prior to regression tests? |