Re: [Json] Media types, extensibility in draft-ietf-json-i-json-02
Tim Bray <tbray@textuality.com> Wed, 02 July 2014 15:55 UTC
Return-Path: <tbray@textuality.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 F40761B27D5 for <json@ietfa.amsl.com>; Wed, 2 Jul 2014 08:55:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 u0mziCwSME5b for <json@ietfa.amsl.com>; Wed, 2 Jul 2014 08:55:16 -0700 (PDT)
Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A87B81B27CF for <json@ietf.org>; Wed, 2 Jul 2014 08:55:16 -0700 (PDT)
Received: by mail-ve0-f172.google.com with SMTP id jz11so11367181veb.17 for <json@ietf.org>; Wed, 02 Jul 2014 08:55:15 -0700 (PDT)
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:from:date :message-id:subject:to:cc:content-type; bh=B/2/Mni03ciLY4RYi7vIl/Vhb6kf6PqlwOTczr5EclU=; b=Rqd0SKcg46UTCrluQ/hPayUwfE9JdZOCIhsmiGQXZerGX+TfA8UWmaaFHLa6RcVOV7 39l0A/DdBbWbTITSYoJdJS+khxn1E/rq/qP5bnI4pIszEq+iQYkc9V0oL56/0KuxBQAf j8Ev96OnZcZ1eYNAv7hor6KbTEPqbpaomlcV5JDMCgZWMxgMEdta+6WGf1XsSMgjTpzz /hFPm/eRyu1u0t08LUZcEGn4AyzxQshTX0WQgRSJGhomLn+qnUqOzgIkc1YAtBWMm4aM n6cLyQuCX7vRPqPNXOawRfMhcmmDce4lY05RQ+N1Q3uyQOrv8BZ/gGtOt++UVAollkCp GrnQ==
X-Gm-Message-State: ALoCoQkDU6OSgL/xp8hjdupJyRXfHtU0ya7RbQpUhvSNHSajw1cvfUGM8UDNEoFfrTZ/zllzdyTd
X-Received: by 10.52.163.208 with SMTP id yk16mr6397247vdb.36.1404316515746; Wed, 02 Jul 2014 08:55:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.221.49.199 with HTTP; Wed, 2 Jul 2014 08:54:55 -0700 (PDT)
X-Originating-IP: [24.84.235.32]
In-Reply-To: <CAMm+LwgU5veinaNJ6ptLJ509QD3R5=LEbpfmNjZSy5C+8jfPXg@mail.gmail.com>
References: <CALcoZionwZ1gn0hkhq4sKcDKg3LK13+d-XvBzXUA4iHjS6PHNA@mail.gmail.com> <CAMm+LwgU5veinaNJ6ptLJ509QD3R5=LEbpfmNjZSy5C+8jfPXg@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
Date: Wed, 02 Jul 2014 08:54:55 -0700
Message-ID: <CAHBU6iuc2j4a5VYnrboMEMnAPxhs5i+iZxfpbfnN1oa3740TfQ@mail.gmail.com>
To: Phillip Hallam-Baker <ietf@hallambaker.com>
Content-Type: multipart/alternative; boundary="001a11c24dfe12cd1804fd37ebf0"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/4EkQSUVhOV4M73XmgdnDENZXsTk
Cc: Mark Baker <distobj@acm.org>, 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: Wed, 02 Jul 2014 15:55:19 -0000
On Wed, Jul 2, 2014 at 7:40 AM, Phillip Hallam-Baker <ietf@hallambaker.com> wrote: > The only use for Content-Type is for content negotiation. There is no > situation in which a negotiation that makes a distinction between JSON and > I-JSON makes any sense. > Well, the “only use is for content negotiation” assertion is just wrong, Content-type is used to dispatch to various software modules depending on what kind of thing you receive. 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. > > Content identification that tells me a document is JSON is useless unless > I know the schema or purpose of the document. > > > If I write a protocol then I am going to tell people to use I-JSON > encoding or there is no value to it. If the sender has an option to choose > between JSON and I-JSON then I have to implement both and nothing is saved > or simplified. > > There is one situation in which I might use a content type and that is > where a protocol is offered in more than one encoding. For example, SAML in > JSON. If I have an application that has no XML except for one Web Service I > might well offer that service in JSON or XML. Another case where > negotiation is frequently desirable is where a protocol designer has become > confused by REST ideology and has the idea that request parameters should > be URI encoded and responses returned in JSON. Many of us would much prefer > to do everything in one format. > > > So I don't see any reason to revisit the issue of a content-type. JSON and > I-JSON are the same thing as far as content negotiation is concerned and > the distinction is useless for content identification. > > Where it would be useful to revise things would be to define a particular > way to specify the semantics of a JSON document, or at least the protocol > family. > > > For example, I have a protocol that allows a client to retrieve the > current phinger (.phb) document corresponding to a phingerprint (hash of > the public key info). The content is encoded in JSON. But it is not just > any JSON, it is JSON encoding of a phinger which is a personal PKI root > file. > > Since the mechanism being used here is the /.well-known convention > (/.well-known/ppe at the moment for testing), it would make sense to re-use > the prefix assigned for that as a modifier to the content-type > > Content-Type: application/json; protocol=ppe > > > > > _______________________________________________ > json mailing list > json@ietf.org > https://www.ietf.org/mailman/listinfo/json > > -- - Tim Bray (If you’d like to send me a private message, see https://keybase.io/timbray)
- [Json] Media types, extensibility in draft-ietf-j… Mark Baker
- Re: [Json] Media types, extensibility in draft-ie… Phillip Hallam-Baker
- Re: [Json] Media types, extensibility in draft-ie… Tim Bray
- Re: [Json] Media types, extensibility in draft-ie… John Cowan
- Re: [Json] Media types, extensibility in draft-ie… Mark Baker
- Re: [Json] Media types, extensibility in draft-ie… Joe Hildebrand (jhildebr)
- Re: [Json] Media types, extensibility in draft-ie… Tim Bray
- Re: [Json] Media types, extensibility in draft-ie… Joe Hildebrand (jhildebr)
- Re: [Json] Media types, extensibility in draft-ie… Larry Masinter
- Re: [Json] Media types, extensibility in draft-ie… Joe Hildebrand (jhildebr)
- Re: [Json] Media types, extensibility in draft-ie… Tim Bray
- Re: [Json] Media types, extensibility in draft-ie… Mark Baker
- Re: [Json] Media types, extensibility in draft-ie… Nico Williams
- Re: [Json] Media types, extensibility in draft-ie… Martin J. Dürst
- Re: [Json] Media types, extensibility in draft-ie… Markus Lanthaler
- Re: [Json] Media types, extensibility in draft-ie… Erik Wilde
- Re: [Json] Media types, extensibility in draft-ie… Mark Baker
- Re: [Json] Media types, extensibility in draft-ie… Markus Lanthaler
- Re: [Json] Media types, extensibility in draft-ie… mike amundsen
- Re: [Json] Media types, extensibility in draft-ie… Phillip Hallam-Baker
- Re: [Json] Media types, extensibility in draft-ie… Joe Hildebrand (jhildebr)
- Re: [Json] Media types, extensibility in draft-ie… Erik Wilde
- Re: [Json] Media types, extensibility in draft-ie… Larry Masinter