Re: [Json] FYI ECMA, W3C, IETF coordination on JSON

Jorge Chamorro <jorge@jorgechamorro.com> Tue, 08 October 2013 20:06 UTC

Return-Path: <jorge@jorgechamorro.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B4D3F21F9FC3 for <json@ietfa.amsl.com>; Tue, 8 Oct 2013 13:06:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T9Pp0ozWFOKY for <json@ietfa.amsl.com>; Tue, 8 Oct 2013 13:06:40 -0700 (PDT)
Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by ietfa.amsl.com (Postfix) with ESMTP id 7787421F93E4 for <json@ietf.org>; Tue, 8 Oct 2013 13:06:25 -0700 (PDT)
Received: by mail-wi0-f171.google.com with SMTP id hm2so7207412wib.4 for <json@ietf.org>; Tue, 08 Oct 2013 13:06:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=2j2pgTH8uv0P9CJ2jEZ25luil/qcGDICYLatXYnR37s=; b=I2pcjf/+VsfGlcmANyXfMmxEyOAuiNaH1BfkkPKhMVZxlv0EWRUxxG26bq14X7kjDw KDIBQxMCDqqK0jAXHCPhkt9xD+Bv1hAz1uU2q9TK3g6WrrlML7bWTg8bWDfzKnv2zEwF 4n40NKRMFtXKzK+J4TGKdI5LU7lx0jaaruQyrToutJubyzBA8NDzDQ4GDmryvxRlon0H YknuiQi1c+amODcH2bSmp4ihFVKbJBk2TJnCNEJo3oqU0AkTB3d6Mdx1cP+rR6YW2ArP 8Lbah33jGWhBk1x6kx5do6u68283wmRZmR/9PbGUoyfK9yoayRvqIRXcbknffzA08Lpw JPhg==
X-Gm-Message-State: ALoCoQlgdUMFuBzt1ctAS64K67dMTp3+VZH/eo93RJXq0HffIsUAj0uhCloZp4GmIgd1/AeSyB/H
X-Received: by 10.180.206.180 with SMTP id lp20mr25088115wic.48.1381262785034; Tue, 08 Oct 2013 13:06:25 -0700 (PDT)
Received: from [192.168.10.50] (243.Red-83-49-8.dynamicIP.rima-tde.net. [83.49.8.243]) by mx.google.com with ESMTPSA id d11sm8340970wic.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 13:06:24 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset="us-ascii"
From: Jorge Chamorro <jorge@jorgechamorro.com>
In-Reply-To: <5254599C.6090604@gmail.com>
Date: Tue, 08 Oct 2013 22:06:21 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <338C416F-FFFF-4282-A657-612762C56A24@jorgechamorro.com>
References: <C68CB012D9182D408CED7B884F441D4D3482260661@nambxv01a.corp.adobe.com> <CAHBU6ivjOHyfMeSNPK3+A_4+VVsyH5Y9XDj77J01OZCjdB6wmA@mail.gmail.com> <525429ED.5000705@gmail.com> <04FC3123-33A4-40DA-AD5D-DA543435DE56@wirfs-brock.com> <20131008164219.GA16081@mercury.ccil.org> <52544E3C.7000907@gmail.com> <3BDEC79B-6B72-4282-955A-D31E156DB29F@jorgechamorro.com> <5254599C.6090604@gmail.com>
To: "Peter F. Patel-Schneider" <pfpschneider@gmail.com>
X-Mailer: Apple Mail (2.1085)
Cc: Allen Wirfs-Brock <allen@wirfs-brock.com>, John Cowan <cowan@mercury.ccil.org>, Larry Masinter <masinter@adobe.com>, Tim Bray <tbray@textuality.com>, JSON WG <json@ietf.org>, "www-tag@w3.org" <www-tag@w3.org>
Subject: Re: [Json] FYI ECMA, W3C, IETF coordination on JSON
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Oct 2013 20:06:56 -0000

On 08/10/2013, at 21:14, Peter F. Patel-Schneider wrote
> On 10/08/2013 11:43 AM, Jorge Chamorro wrote:
>> On 08/10/2013, at 20:26, Peter F. Patel-Schneider wrote:
>> 
>>> The paragraph on numbers, see below, seems rather dangerous, as well as being incorrect.
>> Is it? Why?
>> 
> Well, for starters, interchanging non-integers can lead to loss of precision, which can be dangerous.  Further, interchanging numbers without some notion of the limits of the receiver is also dangerous.
> 
> Second, JSON does not only use sequences of digits to represent numbers, and there are many JSON numbers that cannot be represented as a sequence of base-ten digits.
> 
> Third, there are many numbers that humans interchange that cannot be represented as finite sequences of digits, even if you allow also a decimal point and a negative sign, for example 1/7, pi, and the square root of two.  (Perhaps the wording in the introduction is meant to allow infinite sequences of digits, but then using JSON for interchange is a bit difficult.)  My understanding is that limiting the representation of numbers to something like the JSON syntax is more of a computer thing than a human thing.

Ok, look: he's done -and very well- what he said should be done:

Begin forwarded message:

> From: Douglas Crockford <douglas@crockford.com>
> Date: 13 de junio de 2013 17:50:33 GMT+02:00
> To: "json@ietf.org" <json@ietf.org>
> Subject: [Json] Two Documents
> content-type: text/plain; charset="us-ascii"; Format="flowed"
> 
> The confusion and controversy around this work is due to a mistake that I
> made in RFC 4627. The purpose of the RFC, which is clearly indicated
> in the title, was to establish a MIME type. I also gave a description of
> the JSON Data Interchange Format. My mistake was in conflating the two,
> putting details about the MIME type into the description of the format. My
> intention was to add clarity. That obviously was not the result.
> 
> JSON is just a format. It describes a syntax of brackets and commas that
> is useful in many contexts, profiles, and applications. JSON is agnostic
> about all of that stuff. JSON shouldn't even care about character encoding.
> Its only dependence on Unicode in the hex numbers used in the \u notation.
> JSON can be encoded in ASCII or EBCDIC or even Hollerith codes. JSON can
> be used in contexts where there is no character encoding at all, such as
> paper documents and marble monuments.
> 
> There are uses of JSON however in which such choices matter, and where
> behavior needs to be attached to or derived from the syntax. That is
> important stuff, and it belongs in different documents. Such documents
> will place necessary restrictions on JSON's potential. No such document
> can fit all applications, which causes much of the controversy we've seen
> here. One size cannot fit all. JSON the format is universal. But real
> applications require reasonable restrictions.
> 
> So we should be working on at least two documents, which is something we have
> discussed earlier. The first is The JSON Data Interchange Format, which is
> a simple grammar. The second is a best practices document, which recommends
> specific conventions of usage.
> 
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json


ECMA-404 is simple, complete, easy to read and extremely clear: excellent.

-- 
( Jorge )();