Re: [Json] draft-williams-json-text-sequence-00

Phillip Hallam-Baker <hallam@gmail.com> Sat, 15 March 2014 20:53 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 A54D41A01B9 for <json@ietfa.amsl.com>; Sat, 15 Mar 2014 13:53:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, SPF_PASS=-0.001] autolearn=ham
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 xjdL0ZQQ6M45 for <json@ietfa.amsl.com>; Sat, 15 Mar 2014 13:53:12 -0700 (PDT)
Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) by ietfa.amsl.com (Postfix) with ESMTP id E81FA1A01A0 for <json@ietf.org>; Sat, 15 Mar 2014 13:53:11 -0700 (PDT)
Received: by mail-la0-f53.google.com with SMTP id b8so2649241lan.26 for <json@ietf.org>; Sat, 15 Mar 2014 13:53:04 -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=npM/82OD5Jqx1m268m+SgvC9v7XWrydvUwKcoek4gxI=; b=BInTm8Mn2lNNXICVuNroM2Sa0Ex3yIYFrPZAH7SOtGDyoouCF634LXpQ2FnURGIXal AmUNND7KWF6KRVZlwBHD4v0biyCazom2mhHCUN4GI5h+Jet1EVVfgqD8GCjKLXV+91i8 hhZMb1Yo5B0qgtugJA7xHzuMU/qRdmec/N2vi3yhJsym2mqiJbjFSygNtmqzLT7N3koZ RNKLy/DALGi/9/igXDbV36tGuisGNqZAnIrFaUvau/VscZkmSzwf1FKcyfX1BO0ns+VB wurvDFSW9ORsJHqT4aGZz2TZRk7DvjcE9HYndlFmJkkdMCh9rvytwV+gl6hYXjuf/T1b 5oiw==
MIME-Version: 1.0
X-Received: by 10.152.7.8 with SMTP id f8mr122097laa.39.1394916783886; Sat, 15 Mar 2014 13:53:03 -0700 (PDT)
Received: by 10.112.234.229 with HTTP; Sat, 15 Mar 2014 13:53:03 -0700 (PDT)
In-Reply-To: <20140315194123.GG24343@mercury.ccil.org>
References: <CAK3OfOg7Ly=unmjJY2E34LZT1DyqZ9VFUs4gtNNEiMJGA9cQKA@mail.gmail.com> <20140315194123.GG24343@mercury.ccil.org>
Date: Sat, 15 Mar 2014 16:53:03 -0400
Message-ID: <CAMm+LwiPrm+yx-oQwpKU2fLh6OsNsQZMyidnXwMHOryptxppZw@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: John Cowan <cowan@mercury.ccil.org>
Content-Type: multipart/alternative; boundary="001a11c2a0f46515e104f4ab5faa"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/lLiY9AshHPfoyS0RZ2lTP3Nedww
Cc: Nico Williams <nico@cryptonector.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] draft-williams-json-text-sequence-00
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: Sat, 15 Mar 2014 20:53:14 -0000

On Sat, Mar 15, 2014 at 3:41 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> Nico Williams scripsit:
>
> > Just submitted.
>
> 1) Your terminology of "online parsers" and "incremental parsers"
> is very confusing.  What you call an "online parser", I would call a
> "streaming parser", because it returns portions of arrays, objects, and
> possibly even strings as a stream of events.  Your "incremental parser"
> is simply a parser that stops reading when it reaches the end of a JSON
> text without insisting that there be no additional characters.
>
> 2) The sentence "Encoders MUST emit" should refer explicitly to
> the grammar.  Currently the grammar is completely unmoored from the
> requirements.  "Encoders MUST emit JSON text sequences that conform to
> the ABNF" is sufficient.
>
> 3) The sentence "Two contiguous separators do not" is unnecessary,
> because there are no empty JSON texts.
>
> 4) In "Parsers MUST be able", for "to parser" read "to parse".  But as
> in #2, this should simply say "Parsers MUST be able to parse any text
> conforming to the ABNF" for the same reasons.
>
> 5) The recommendation seems entirely unnecessary to me.
>
> 6) I still don't see that there is any ambiguity in "truefalse" considered
> as two JSON-texts.  So I would strip "Parsers MAY parse" to just say
> "sequences where the separators are missing."  Note that such sequences
> don't conform anyway.
>
> 7) If you want newline-free JSON-texts to be in serious use, the second
> MAY should be promoted to a SHOULD.


I am thinking that the best way to show off JSON sequence would be to
update this draft from '96

http://www.w3.org/TR/WD-logfile.html

It is a widely used format but it has problems, every entry has to specify
entries for precisely the set of data advertised at the start.

I am thinking of redoing the spec in JSON using the same tags to identify
the data elements.


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