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

"Markus Lanthaler" <markus.lanthaler@gmx.net> Mon, 07 July 2014 15:36 UTC

Return-Path: <markus.lanthaler@gmx.net>
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 BBFE71A0183 for <json@ietfa.amsl.com>; Mon, 7 Jul 2014 08:36:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.551
X-Spam-Level:
X-Spam-Status: No, score=-2.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 xQy1QfGPiLhI for <json@ietfa.amsl.com>; Mon, 7 Jul 2014 08:36:13 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3E621A0303 for <json@ietf.org>; Mon, 7 Jul 2014 08:36:12 -0700 (PDT)
Received: from Vostro3500 ([77.119.131.246]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M7m0a-1Wi5ju2wCG-00vPRq; Mon, 07 Jul 2014 17:36:03 +0200
From: Markus Lanthaler <markus.lanthaler@gmx.net>
To: 'Erik Wilde' <dret@berkeley.edu>, '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>
In-Reply-To: <53BAB379.3040506@berkeley.edu>
Date: Mon, 07 Jul 2014 17:36:00 +0200
Message-ID: <046301cf99f9$2935eca0$7ba1c5e0$@gmx.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 15.0
Thread-Index: AQK1vLPhXwGnaN3t5HsVsgHOd3w9pAIkr+2RAleRoPACU9Td8QF5qzZNAYPjlbIBFJLU2AGaPkitAXX2iJsCntggdplD7Qtw
Content-Language: de
X-Provags-ID: V03:K0:5lyAorjeuBe/8v5FKwVU8inbuN80Dot4+3zgpOM94p7KhMCJss1 tYEva/Xm8qJ68NvA7p/cAcDJ8UHXvIZ3/RMEQXOpqRylPoLItj6NTsVi6rCsDrAJrEBPIIE N1Ey6kaQ7JiwfQyIs3k14T9DLEsXUGX9sFpnGR/dzPiyMDQl17wmAO/ZMpzGewMJddZ/r9c RR/b7+hYS9ZnkCccyUCWQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/json/_VwHqOgb-K3wi5SRIKcD8INpNPg
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: Mon, 07 Jul 2014 15:36:14 -0000

On 7 Jul 2014 at 16:49, Erik Wilde wrote:
> hello markus.
> 
> On 2014-07-07, 16:40, Markus Lanthaler wrote:
>> On Sunday, July 06, 2014 7:13 AM, Tim Bray wrote:
>>> So, question: Is there anyone else who agrees with Mark's original
>>> argument that there ought to be a Media type for i-json. I wouldn't
>>> be wildly against it, but frankly can't see much of a practical upside.
>>
>> 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 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.


> 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).


Cheers,
Markus


--
Markus Lanthaler
@markuslanthaler