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

mike amundsen <mamund@yahoo.com> Mon, 07 July 2014 15:53 UTC

Return-Path: <mamund@yahoo.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 C2C1F1A02FE for <json@ietfa.amsl.com>; Mon, 7 Jul 2014 08:53:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.428
X-Spam-Level:
X-Spam-Status: No, score=-1.428 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_38=0.6, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001] 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 VdYgz7uA747p for <json@ietfa.amsl.com>; Mon, 7 Jul 2014 08:53:18 -0700 (PDT)
Received: from nm4-vm4.bullet.mail.ir2.yahoo.com (nm4-vm4.bullet.mail.ir2.yahoo.com [212.82.96.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B99861A0166 for <json@ietf.org>; Mon, 7 Jul 2014 08:53:17 -0700 (PDT)
Received: from [212.82.98.125] by nm4.bullet.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 15:53:15 -0000
Received: from [46.228.39.64] by tm18.bullet.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 15:53:15 -0000
Received: from [127.0.0.1] by smtp101.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 15:53:15 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1404748395; bh=5AcKqNcKof09zdiRN3rCQVFkulv6cnqbABvx+blgPak=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:X-Gm-Message-State:X-Received:MIME-Version:Received:In-Reply-To:References:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=6IJ7N+wnVL9IsA1XkDN0xczorire5xzpRp20GtCeUjPbkK4p/8h95u2vyihYWE9jNfW0ZppMafuz+j6hN6V1aB7bWYSD5Ntq3z3QB705jpBa4KnTepVuZQy14u+cqWyaGqRJPAo2y+PT8S56glElp4PfiSHY5iFI7rdkHMvogBY=
X-Yahoo-Newman-Id: 726161.62927.bm@smtp101.mail.ir2.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: cDkWI68VM1kL7rCt8uETpmIZge9WXZbpESki4DTV2zgnHlF VB55S2bzLq4tGgEpwcZ5qteJbVbsmjzLmfNBIbjpp56nzieDcEh5cW.B8B_F aoNxXlGWEv4V1E.UyrWysbLmE5xmvNdyYiMx2oLBd2xKKfdH0.OQfz.s9Pgs mKTnVrJi5QtpIOliuYMDLbp_BSl8jYqU28Ra4VKg0ouX.rEDkTJRYOCNQTSp _pQRllTYX4MimSIkUOFfBkUpHEFO9wrq69dwvXBCgV61Z03nq74MTgpfEgSO 9aLHZHOUmrWVKfjlvu1Az9Yemc14Icj2greWau7CBEstOXvRqUdY4zgi1Co0 doE.ICRQG68V.CVpv.G0Sp11wlQE0fd_Os9T4wDf05Ygqrvcg.4hihgW3I4B sG9vGrxNtYJXmPRcy.J067e4c3RAnDo9PmQU.KqXVhadBnL_WRUA4X.AJtZA 4eY3CViv4ge89Gd_yKNIf9JfNdGsILK8zuhMiYLv9Gbv7XonGzt55o6H8jq7 rDqV0uIP0trXm_vcqrj6BLEk8zw7kf91HgCYP4PaiEyaYKjb98jqowKRByFS JY7Ep9cw2lIUG0GVhIuRbz1I3.K1TIn1QM0tuOq3UmukWE12ZoxqfhIjtM7d qjujenkqvFgTycwJq4z25_VQoLStojbVcyBd7rtDEGsCoqobZEgd5K4KbRi_ uMh3c08AfrBFkAUGYiaUSETruTXUvJN.x8Im35Ua75vnD.mjw1fPU0GjHhpF 1DKKN6UlnhVxbK9Hr7GD8oA--
X-Yahoo-SMTP: i12ABOmswBAkPG1PnjmsmmFRWA--
X-Rocket-Received: from mail-wg0-f47.google.com (mamund@74.125.82.47 with plain [188.125.68.56]) by smtp101.mail.ir2.yahoo.com with SMTP; 07 Jul 2014 15:53:15 +0000 UTC
Received: by mail-wg0-f47.google.com with SMTP id l18so1961361wgh.30 for <json@ietf.org>; Mon, 07 Jul 2014 08:53:14 -0700 (PDT)
X-Gm-Message-State: ALoCoQmSpH/OA+nPXPfRQ3sSPQJ/gKpxd4YlfiY998nc4JUGURvRC094af/GbAVDMVKro0TIYGFN
X-Received: by 10.180.79.38 with SMTP id g6mr37319388wix.61.1404748394846; Mon, 07 Jul 2014 08:53:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.79.169 with HTTP; Mon, 7 Jul 2014 08:52:54 -0700 (PDT)
In-Reply-To: <046301cf99f9$2935eca0$7ba1c5e0$@gmx.net>
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>
From: mike amundsen <mamund@yahoo.com>
Date: Mon, 07 Jul 2014 11:52:54 -0400
Message-ID: <CAPW_8m6tDRegbqRP568GEheoJSo4w=qMz5tbsP7TdLdQfVzRbA@mail.gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Content-Type: multipart/alternative; boundary="f46d044287f612f89804fd9c7954"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/-6iBlrKsIBR_wTdbOoJUTYCsR24
Cc: Mark Baker <distobj@acm.org>, Erik Wilde <dret@berkeley.edu>, Phillip Hallam-Baker <ietf@hallambaker.com>, JSON WG <json@ietf.org>, Tim Bray <tbray@textuality.com>, Joe Hildebrand <jhildebr@cisco.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:53:19 -0000

we should use media type registration to define well-formedness --
"shannon-message" style
we should use profile registration establishing app semantics and validity




mamund
+1.859.757.1449
skype: mca.amundsen
http://amundsen.com/blog/
http://twitter.com/mamund
https://github.com/mamund
http://linkedin.com/in/mamund


On Mon, Jul 7, 2014 at 11:36 AM, Markus Lanthaler <markus.lanthaler@gmx.net>
wrote:

> 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
>
>
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>