Re: [Json] JSON Content Rules -05

Daniel Parker <danielaparker@gmail.com> Fri, 18 March 2016 16:09 UTC

Return-Path: <danielaparker@gmail.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 896CB12D860 for <json@ietfa.amsl.com>; Fri, 18 Mar 2016 09:09:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 nC7kHw1wGFZb for <json@ietfa.amsl.com>; Fri, 18 Mar 2016 09:09:32 -0700 (PDT)
Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A836012D52C for <json@ietf.org>; Fri, 18 Mar 2016 09:09:18 -0700 (PDT)
Received: by mail-yw0-x230.google.com with SMTP id g127so144729187ywf.2 for <json@ietf.org>; Fri, 18 Mar 2016 09:09:18 -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; bh=Ni0KShnsOQP/mrZ3JHPmI2+BsW/5RMg9gHjvJcjhbko=; b=mpxz2yRrZqziQo1Na+Mgyt3IJrbogfonh9Pjak6wO2RmEet/4ajGsTPeXgD/c6zI/9 5TJy8SFWNBZHcJOFiB+2M32UVI7B2Tlz58P16kNKuEk/9G3mDdez2uPbtp3wx6Po+sYa 1HYK6EkSbT8OKzJ6SACV8v3LXVBr9YjybQFG33VOa87YyuQ5nhLekmSmDG/OhdNgj/Q8 uzkhH38z3PinGpydp9elw4mllbAMjeM/VKNRLUbQ1tIfnAzf4hK0jjjnXfj+N/3e8nmG qDLX7PzsJmrmrsl2t98zccatLAl/31Vp0DIwklkO9VB2fXt7RWGP4o5XL2O+wYEJetYT cWNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Ni0KShnsOQP/mrZ3JHPmI2+BsW/5RMg9gHjvJcjhbko=; b=BjiRFb6XmeS3BP/MmbH/7E2PtNW/aWwrwPUDbmKGObOH3xAOLG94Ia/4j4mwqK1vS+ RYM33dpto0WAowKWMIfaODMwWJkHR7wNe+xEK1uwrgJvU2DTiM2JREbK49zGkodjdl2Q Lezqgti55WXXHUojmIMMhd/YMVucNRJ/rs3Jjv7XUFOZyfqVfMXfycCJgVmLYCZyvFZS JqMzC/rK5rSHUp87HDn6e/XWUT0s67fd0RbC3xdzDFTcMRXQ4+zBXt8mdIwlIDDoOWcC +/z/qBCRUpXAAhBJnGmH0TEFbblj370UpWnogGf4LMJ0dGCd0rZ2IvOlj+hqw7h8Vvau nIBQ==
X-Gm-Message-State: AD7BkJJSexzasXUtunJFqBMgHHQV3PUFMCavoha4pI327yudhXSGuLgNXBw6tuasMNPs2M7VSnaG0csMWMg6NQ==
MIME-Version: 1.0
X-Received: by 10.37.16.195 with SMTP id 186mr7689062ybq.164.1458317357768; Fri, 18 Mar 2016 09:09:17 -0700 (PDT)
Received: by 10.37.76.201 with HTTP; Fri, 18 Mar 2016 09:09:17 -0700 (PDT)
In-Reply-To: <CAAQiQRdajFBwcLP+HxAjKE5v+1qX3DC4kS0piRO5VqKaTm5pyQ@mail.gmail.com>
References: <CA+mwktLxkDuGXGm083N4WK05mNVPg6R5SQ_5b5X5GckJR-mF2w@mail.gmail.com> <CAAQiQRdajFBwcLP+HxAjKE5v+1qX3DC4kS0piRO5VqKaTm5pyQ@mail.gmail.com>
Date: Fri, 18 Mar 2016 12:09:17 -0400
Message-ID: <CA+mwktJh+bh9U-T9Vcs5akjNO7ZyqgAibKQVg_tSa0Bye1A2SQ@mail.gmail.com>
From: Daniel Parker <danielaparker@gmail.com>
To: Andrew Newton <andy@hxr.us>
Content-Type: multipart/alternative; boundary=001a113ed8f414695c052e54f8b9
Archived-At: <http://mailarchive.ietf.org/arch/msg/json/TU1ydIzFMFlthW7QKAgVlMaECJQ>
Cc: JSON WG <json@ietf.org>
Subject: Re: [Json] JSON Content Rules -05
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 18 Mar 2016 16:09:38 -0000

Hi Andy,

Thanks for the response, looking forward to -06.

Regarding distinguishing value rules and name rules, value rules starting
with a quote or a number are straightforward to distinguish, and couldn't
 "integer", "true", "boolean", etc be treated as names of built in rules,
so not necessary to distinguish?

In any case, thank you very much for the work you've put into this
specification, it's very much appreciated.

Best regards,
Daniel

On Fri, Mar 18, 2016 at 10:50 AM, Andrew Newton <andy@hxr.us> wrote:

> Daniel,
>
> Actually we realized that too. The -06 version, which should be out
> soon, has an updated ABNF to allow the colon before object and array
> rule definitions.
>
> However, it is still needed for value rules so a parser can tell the
> difference between a value rule and a rule name.
>
> -andy
>
> On Fri, Mar 18, 2016 at 10:29 AM, Daniel Parker <danielaparker@gmail.com>
> wrote:
> > Regarding JCR - 05
> >
> > http://www.ietf.org/id/draft-newton-json-content-rules-05.txt
> >
> > Is there anything about the JCR grammar that requires the colon
> character to
> > be used as a prefix to a value rule, as opposed to simply being a
> name-rule
> > separator in an object rule?
> >
> > For example, to my eye, the example
> >
> > {
> >
> > "Image" {
> >          width, height, "Title" :string,
> >          "Thumbnail" { width, height, "Url" :uri },
> >          "IDs" [ *:integer ]
> >        }
> > }
> >
> > width "Width" : 0..1280
> > height "Height" : 0..1024
> >
> > would look more "JSON like" written as
> >
> > {
> >
> > "Image" {
> >          width, height, "Title" :string,
> >          "Thumbnail" : { width, height, "Url" :uri },
> >          "IDs" [ *integer ]
> >        }
> > }
> >
> > width "Width" : 0..1280
> > height "Height" : 0..1024
> >
> > and similarly
> >
> > the_bradys [ parents, children ]
> >     children ( :"Greg", :"Marsha", :"Bobby", :"Jan" )
> >
> >        parents ( :"Mike", :"Carol" )
> >
> > would look more "JSON like" written as
> >
> > the_bradys [ parents, children ]
> >       children ("Greg", "Marsha", "Bobby", "Jan" )
> >        parents ( "Mike", "Carol" ).
> >
> > Thanks,
> > Daniel
> >
> >
> >
> > _______________________________________________
> > json mailing list
> > json@ietf.org
> > https://www.ietf.org/mailman/listinfo/json
> >
>