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

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Mon, 07 July 2014 05:40 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
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 E93E51A0AF6 for <json@ietfa.amsl.com>; Sun, 6 Jul 2014 22:40:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.442
X-Spam-Level:
X-Spam-Status: No, score=-0.442 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.651] 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 v9njLiiykS6H for <json@ietfa.amsl.com>; Sun, 6 Jul 2014 22:40:30 -0700 (PDT)
Received: from scintmta01-14.scbb.aoyama.ac.jp (scintmta01-14.scbb.aoyama.ac.jp [133.2.253.64]) by ietfa.amsl.com (Postfix) with ESMTP id CB2D61A0640 for <json@ietf.org>; Sun, 6 Jul 2014 22:40:29 -0700 (PDT)
Received: from scmeg01-14.scbb.aoyama.ac.jp (scmeg01-14.scbb.aoyama.ac.jp [133.2.253.15]) by scintmta01-14.scbb.aoyama.ac.jp (Postfix) with ESMTP id C515932E02B; Mon, 7 Jul 2014 14:40:28 +0900 (JST)
Received: from itmail2.it.aoyama.ac.jp (unknown [133.2.206.134]) by scmeg01-14.scbb.aoyama.ac.jp with smtp id 1a6e_6deb_0749516a_73ef_4e18_b578_f2bde55d762c; Mon, 07 Jul 2014 14:40:28 +0900
Received: from [IPv6:::1] (unknown [133.2.210.1]) by itmail2.it.aoyama.ac.jp (Postfix) with ESMTP id 12110BF4E7; Mon, 7 Jul 2014 14:40:28 +0900 (JST)
Message-ID: <53BA32BA.4020205@it.aoyama.ac.jp>
Date: Mon, 07 Jul 2014 14:40:10 +0900
From: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Tim Bray <tbray@textuality.com>, "Joe Hildebrand (jhildebr)" <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> <CAHBU6itO8SbfwEK5ssSHCt+d8oH700w4+dK-g8mn413gmmMUVw@mail.gmail.com>
In-Reply-To: <CAHBU6itO8SbfwEK5ssSHCt+d8oH700w4+dK-g8mn413gmmMUVw@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/json/Wpax7ta-Smv3ZJkOqJgHTTDK3Us
Cc: Mark Baker <distobj@acm.org>, Phillip Hallam-Baker <ietf@hallambaker.com>, JSON WG <json@ietf.org>
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 05:40:32 -0000

On 2014/07/05 11:04, Tim Bray wrote:
> So, would an I-JSON media type help in producing the desired effect? Not
> obvious to me.  In practice, I’m supposing that if I’m writing a consumer
> for JIP (Joe’s Internet Protocol) I’d toggle my JSON parser into I-JSON
> mode because I know that’s what the RFC said.

I fully agree here. They way I see it, there would then be a media type 
for JIP, which e.g. could be application/jip+json. The JIP RFC would say 
that JIP uses I-JSON, and receivers that had a choice would toggle as 
explained above. But still the +json suffix would mean that the 
documents could take advantage of generic JSON processing (whatever that 
is).

Another way to express this is to say that in as far as there is a JSON 
'ecosystem', it would be a bad idea to try and split that ecosystem into 
two (JSON and I-JSON) at the top.

Regards,   Martin.

> On Fri, Jul 4, 2014 at 6:30 PM, Joe Hildebrand (jhildebr) <
> jhildebr@cisco.com> wrote:
>
>> There are times when, in the documentation for a service that is producing
>> JSON, I would like to say:
>>
>> "If you receive a message from me that is not strictly I-JSON, I would
>> prefer you treat it as an error on my part, and therefore treat my message
>> as invalid, because if something went wrong enough that what I sent you
>> wasn't valid I-JSON my server room is likely on fire."
>>
>>
>> On 7/2/14, 1:42 PM, "Mark Baker" <distobj@acm.org> wrote:
>>
>>> On Wed, Jul 2, 2014 at 11:54 AM, Tim Bray <tbray@textuality.com> wrote:
>>>> I’ll say that just on Web-architectural grounds, I think distinct data
>>>> formats should have distinct Internet Media Types, and so it bothers me
>>>> that
>>>> we don’t have one for i-json.  But the WG couldn’t perceive any real
>>>> value
>>>> in having one that’s distinct from JSON’s and I didn’t have  a
>>>> forceful-enough argument to move the consensus on this.
>>>
>>> Were there driving use cases behind I-JSON? I could imagine a
>>> (atypical) scenario where it's used as a "publishing profile",
>>> defining a best practice for publishers (Postel-ian style), with no
>>> regard for what happens once it's consumed. You wouldn't need to say
>>> anything about media types then.
>>>
>>> But if you want to be able to exchange I-JSON over the Web or
>>> Internet, so that recipients know, e.g., not to add duplicate keys,
>>> then that can only practically be indicated with a new media type.
>>>
>>> _______________________________________________
>>> json mailing list
>>> json@ietf.org
>>> https://www.ietf.org/mailman/listinfo/json
>>>
>>
>>
>> --
>> Joe Hildebrand
>>
>>
>>
>>
>
>
>
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>