- From: Peter F. Patel-Schneider <pfpschneider@gmail.com>
- Date: Wed, 10 Jul 2013 08:00:29 -0700
- To: Markus Lanthaler <markus.lanthaler@gmx.net>
- CC: 'RDF WG' <public-rdf-wg@w3.org>
So now we have two on each side, I guess.
There is a more-or-less unsubstantiated claim at
http://en.wikipedia.org/wiki/JSON that JSON "is used primarily to transmit
data between a server and web application". If true, then lots of uses of
JSON would be ECMAScript-compatible, I think, which should be double-only.
peter
On 07/10/2013 07:49 AM, Markus Lanthaler wrote:
> On Wednesday, July 10, 2013 4:18 PM, Peter F. Patel-Schneider wrote:
> [...]
>> The first bit is why I was asking about implementations that support this
>> particular way of interpreting JSON numbers.
> Sandro just said in another mail that this is what Python does. I just checked was PHP does:
>
> var_dump(
> json_decode('{ "number1": 1, "number2": 1.4 }')
> );
>
> results in
>
> object(stdClass)[2]
> public 'number1' => int 1
> public 'number2' => float 1.4
>
> I guess the same is true for almost all languages that distinguish between ints and floats.
>
>
>
> --
> Markus Lanthaler
> @markuslanthaler
>
>
Received on Wednesday, 10 July 2013 15:01:02 UTC