Re: [Json] Regarding JSON text sequence ambiguities (Re: serializing sequences of JSON values)

Phillip Hallam-Baker <hallam@gmail.com> Wed, 12 March 2014 11:35 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EA4F11A0960 for <json@ietfa.amsl.com>; Wed, 12 Mar 2014 04:35:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Qi3LtPXATWb for <json@ietfa.amsl.com>; Wed, 12 Mar 2014 04:35:12 -0700 (PDT)
Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) by ietfa.amsl.com (Postfix) with ESMTP id E8B261A0968 for <json@ietf.org>; Wed, 12 Mar 2014 04:35:11 -0700 (PDT)
Received: by mail-lb0-f172.google.com with SMTP id c11so6567542lbj.31 for <json@ietf.org>; Wed, 12 Mar 2014 04:35:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Qle/FSQYuiEimO1GI1IkXM+WmYoyAEjsrOJTGJwMEyk=; b=DaQa0IrKy8qJ1Qs1Bbnlh22ED8QfPsL6z3pgMvmHRLmIAQ4TjuklChl72FUOkQX/LY dTtu8MFi3TU6peI/wcau55Srt7rFXMqKFeFefYytMwauNRBQ86Sp5CKs4GPby4VOeSaY U/ujR/8M4Sl0UWb1UEW7ZgFSYzkodXiWXhtXoaaE9ilLeHZe/f4eLuhHzrrXsgoHEzkR U+h3VIdpavmzyOxwaWlctoZf5J/BjJpOo22SS8zP2NQiIfuaaWYqsXHGFBN4OID+bxdZ Gi/zuo9Ki4+ja/gYHmSOh6jFHsT3qrUQMEpknAp2r69kDQj+JJ1gjSHCcUW+xtYyg85o f9EQ==
MIME-Version: 1.0
X-Received: by 10.153.11.163 with SMTP id ej3mr31561723lad.17.1394624105263; Wed, 12 Mar 2014 04:35:05 -0700 (PDT)
Received: by 10.112.37.168 with HTTP; Wed, 12 Mar 2014 04:35:05 -0700 (PDT)
In-Reply-To: <53202C80.1070204@it.aoyama.ac.jp>
References: <CAK3OfOj_XQJq-JKAjNdH-GuH0_UwZfeWntgyyizMpTLmSaWQoA@mail.gmail.com> <CAK3OfOio58+1yuxQOcvWep1CADMfE1PVC48XDid0dWvd8=SVjA@mail.gmail.com> <CAOXDeqoYb=NXz4ikMxAg3EHFA+903bFgdpR_BL-K18U2oYriXQ@mail.gmail.com> <CAK3OfOiPDfWpOZgExTmwwq6WFcuVbyi_z3C0=M9RhQveBhV_+w@mail.gmail.com> <CAHBU6iuRyRd95Wa_omGS1_T52t+s0AKjWPUW21EAh2ySHuFp=A@mail.gmail.com> <CAMm+LwjRA8x0=zXGRVDy0BqYvyOcEp7=gnUiG4vYOb1RScoyrA@mail.gmail.com> <CAK3OfOj1g_sbnhw9FBCCZtLWsFS5F+aoPX0d5AMkRxQ2fHQi0A@mail.gmail.com> <CAMm+LwhGbo2twsvhPy2Dde+y8shDcm=ysxL_XtRT53oiC8g7ug@mail.gmail.com> <53202C80.1070204@it.aoyama.ac.jp>
Date: Wed, 12 Mar 2014 07:35:05 -0400
Message-ID: <CAMm+LwhjaF1gkaLhy+Oqi-jLMRkaG2mrBN56XsEc50u6SAhB4g@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Content-Type: multipart/alternative; boundary="001a1134635a63b79504f4673af3"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/TAB5YaLB7Nq5AvCcnyK1vpq8YdY
Cc: Nico Williams <nico@cryptonector.com>, Tim Bray <tbray@textuality.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Regarding JSON text sequence ambiguities (Re: serializing sequences of JSON values)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 12 Mar 2014 11:35:14 -0000

On Wed, Mar 12, 2014 at 5:44 AM, "Martin J. Dürst"
<duerst@it.aoyama.ac.jp>wrote:

> On 2014/03/12 04:19, Phillip Hallam-Baker wrote:
>
>> On Tue, Mar 11, 2014 at 2:08 PM, Nico Williams <nico@cryptonector.com
>> >wrote:
>>
>
>  JSON text sequences would be a new Proposed Standard (if we go there)
>>> but like JSON, there exist uses of this "new" thing already -- that
>>> is, before we get to writing the RFC.
>>>
>>
>  I think finding a standard JSON way to meet this requirement is
>> appropriate. Blessing a particular approach that isn't in the existing
>> grammar is not AFIK.
>>
>
> For the record, I strongly agree.
>
> Seeing claims that we need a separate spec just because an initial '[',
> interleaving ','s, and a potential(1) final ']' is too much to deal with
> really surprises me.
>

The final ']' completely kills the use of append only logs. Which means
that you can't rely on the O/S append operation to give atomicity.

So there is a performance and a security issue here.



> At the utmost, this might become an Informational RFC if some people
> really, really want it, but it should NOT become a working item of this
> group, nor should it go to standards track.
>
> Why? JSON is great, but the more variation we get, the more we end up with
> a *big mess*, even if every step may be small and look good.
>

I don't think that is what happened to XML or CORBA.

The CORBA people had no idea of how to communicate what they were
attempting to do. Plus they were trying to exchange C++ objects that
weren't C++ objects at a time when C++ was not functional or stable.

XML is the way it is because it is trying to be a document markup not a
data markup.




> As far as I have heard (no first hand experience, fortunately), CORBA
> ended up that way. Many people, in particular in the JSON community, see
> XML that way. Similar things have been said about ASN-1, although that may
> have been complicated from the start (again, fortunately no first hand
> experience).
>

If we stick to commas then the production already exists in the spec:

json-text = ws-value

json-texts = ws-value (',' ws-value)



-- 
Website: http://hallambaker.com/