Re: [Json] Media types, extensibility in draft-ietf-json-i-json-02

Erik Wilde <dret@berkeley.edu> Tue, 08 July 2014 12:36 UTC

Return-Path: <dret@berkeley.edu>
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 7E6441B2827 for <json@ietfa.amsl.com>; Tue, 8 Jul 2014 05:36:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.852
X-Spam-Level:
X-Spam-Status: No, score=-4.852 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.651, 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 mX0moSKF8x5H for <json@ietfa.amsl.com>; Tue, 8 Jul 2014 05:36:41 -0700 (PDT)
Received: from cm03fe.IST.Berkeley.EDU (cm03fe.IST.Berkeley.EDU [169.229.218.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 806401B2823 for <json@ietf.org>; Tue, 8 Jul 2014 05:36:41 -0700 (PDT)
Received: from 77-56-165-193.dclient.hispeed.ch ([77.56.165.193] helo=dretpro.local) by cm03fe.ist.berkeley.edu with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (auth plain:dret@berkeley.edu) (envelope-from <dret@berkeley.edu>) id 1X4UdN-0005RQ-9x; Tue, 08 Jul 2014 05:36:34 -0700
Message-ID: <53BBE5CC.50403@berkeley.edu>
Date: Tue, 08 Jul 2014 14:36:28 +0200
From: Erik Wilde <dret@berkeley.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: Markus Lanthaler <markus.lanthaler@gmx.net>, 'Tim Bray' <tbray@textuality.com>, 'Joe Hildebrand' <jhildebr@cisco.com>
References: <CALcoZionwZ1gn0hkhq4sKcDKg3LK13+d-XvBzXUA4iHjS6PHNA@mail.gmail.com> <CAMm+LwgU5veinaNJ6ptLJ509QD3R5=LEbpfmNjZSy5C+8jfPXg@mail.gmail.com> <CAHBU6iuc2j4a5VYnrboMEMnAPxhs5i+iZxfpbfnN1oa3740TfQ@mail.gmail.com> <CALcoZioTakxzkuvrt1EgNAKS==NNskWJ1TLUjxtZ1TBGPD+EXw@mail.gmail.com> <CFDCB00F.52A7B%jhildebr@cisco.com> <3b407fff0cc14d5ba291cea58bacac4f@BL2PR02MB307.namprd02.prod.outlook.com> <CFDE30C2.52BE7%jhildebr@cisco.com> <CAHBU6itrQTvccZqTXDBo4MaK9Txu7gGfGh8mfS4Rmv73DwSXfQ@mail.gmail.com> <043801cf99f1$7165f8b0$5431ea10$@gmx.net> <53BAB379.3040506@berkeley.edu> <046301cf99f9$2935eca0$7ba1c5e0$@gmx.net>
In-Reply-To: <046301cf99f9$2935eca0$7ba1c5e0$@gmx.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/json/YS7xRYU-YlXwedsUCEvCX8s6HxU
Cc: json@ietf.org, 'Mark Baker' <distobj@acm.org>, 'Phillip Hallam-Baker' <ietf@hallambaker.com>, 'Larry Masinter' <masinter@adobe.com>
Subject: Re: [Json] Media types, extensibility in draft-ietf-json-i-json-02
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: Tue, 08 Jul 2014 12:36:43 -0000

hello markus.

On 2014-07-07, 17:36 , Markus Lanthaler wrote:
> On 7 Jul 2014 at 16:49, Erik Wilde wrote:
>> On 2014-07-07, 16:40, Markus Lanthaler wrote:
>>> I don't think it makes much sense to define a separate media type for
> i-json
>>> and even less a media type suffix. It *might*, however, make sense to
> mint
>>> a profile URI as defined by RFC6906 [1] for i-json and register it
> according
>>> RFC7284 [2].
>> that would have made a lot of sense if JSON had chosen to support
>> profiles in its recently published update, which it unfortunately
>> didn't.
> You mean adding a "profile" media type parameter, right? I don't really know
> what the process is but I think now that json-bis was published as an RFC
> (it was out of scope for that work), the JSON WG could re-register the media
> type and add such a parameter

i don't think it was explicitly out of scope, and it was briefly 
mentioned on this list. i think it just wasn't considered to be 
important enough. technically speaking, i think you need to re-register 
the media type with an added profile parameter.

http://tools.ietf.org/html/draft-wilde-atom-profile is a draft where i 
am trying to do this for atom. the idea was that this draft could be 
used as a template for any media that would like to start supporting 
profile as a media type parameter (the source is available at 
http://tools.ietf.org/html/draft-wilde-atom-profile).

>> i guess the problem now is that there is no agreed-upon way how
>> profiles are signaled in JSON, which makes the profile mechanism only
>> moderately useful.
> The server can signal it to the client using an HTTP Link header using the
> "profile" link relation. What's currently not possible, is for the client to
> request i-json instead of json from the server. I don't think that's a big
> problem in practice though as I don't expect a server to support both i-json
> and json at the same time anyway.

you're right, signaling them as RFC5988-style links is always a possibility.

>> but i still agree that it would be useful to include
>> such a profile URI for I-JSON in the spec, so that JSON-based formats
>> that have an agreed-upon way of signaling profiles can use it.
> Minting and registering such a URI is extremely cheap and has no negative
> side effects I can think of. We can figure out later if we need to do more
> (e.g. adding a profile parameter to application/json).

yes, and that's the standards argument for using profiles: they are a 
lightweight way for being more specific about a representation, and they 
can be ignored (treat the representation as just using the media type), 
or can be interpreted (assume that the representation follows additional 
constraints).

http://tools.ietf.org/html/rfc6906#section-3.1

cheers,

dret.

-- 
erik wilde | mailto:dret@berkeley.edu  -  tel:+1-510-2061079 |
            | UC Berkeley  -  School of Information (ISchool) |
            | http://dret.net/netdret http://twitter.com/dret |