Re: [Json] I-JSON Topic #1: Media Types?

Nico Williams <nico@cryptonector.com> Mon, 28 April 2014 19:56 UTC

Return-Path: <nico@cryptonector.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 5B2C41A6F9E for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 12:56:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.444
X-Spam-Level:
X-Spam-Status: No, score=-0.444 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, IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_66=0.6] 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 SzvNzxWBko7Y for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 12:56:18 -0700 (PDT)
Received: from homiemail-a30.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id C53621A064C for <json@ietf.org>; Mon, 28 Apr 2014 12:56:18 -0700 (PDT)
Received: from homiemail-a30.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a30.g.dreamhost.com (Postfix) with ESMTP id 1AFD021DE59 for <json@ietf.org>; Mon, 28 Apr 2014 12:56:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=0/bXy6wIZY3DC/dOgFgy kiCN6p8=; b=LN3w+1TIco2edQ6/oYrGmR4jPTjFoYD6y7sAulRoBR2V1D3gJsxw KsBfKiIVHpDzkPqukOm9HKwoolcjZZXyIg1Y03UNJDLttgF4+6gkjwo7YHUdWa+h /Q2urORj9Bo7orSvYQ+ds+sjLiYL6+kzMhCstujM51ZFYhyi5obmtsA=
Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a30.g.dreamhost.com (Postfix) with ESMTPSA id B497E21DE58 for <json@ietf.org>; Mon, 28 Apr 2014 12:56:17 -0700 (PDT)
Received: by mail-wi0-f173.google.com with SMTP id z2so6332292wiv.6 for <json@ietf.org>; Mon, 28 Apr 2014 12:56:16 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.180.108.147 with SMTP id hk19mr16970306wib.42.1398714976589; Mon, 28 Apr 2014 12:56:16 -0700 (PDT)
Received: by 10.216.29.200 with HTTP; Mon, 28 Apr 2014 12:56:16 -0700 (PDT)
In-Reply-To: <535EAFDF.2020403@cisco.com>
References: <535EAFDF.2020403@cisco.com>
Date: Mon, 28 Apr 2014 14:56:16 -0500
Message-ID: <CAK3OfOgTXEpbsVAX1D2XvJ+TzfBfvEdkZ2LefhfKsPu0eECXww@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Matt Miller <mamille2@cisco.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/Y6EGPGMpO-Aa716hCSlgWMNOB_0
Cc: IETF JSON WG <json@ietf.org>
Subject: Re: [Json] I-JSON Topic #1: Media Types?
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, 28 Apr 2014 19:56:19 -0000

On Mon, Apr 28, 2014 at 2:45 PM, Matt Miller <mamille2@cisco.com> wrote:
> "Should there be an I-JSON media type, or a application/*+i-json
> suffix?  Draft i-json-01 calls for it, but this is at best controversial."
>
> If you are in favor -- or not -- of an I-JSON media type or media type
> suffice, please respond to this thread with your reasoning.

To me this is closely related to the top-level type question.  For
both I have this reply:

ISTM that the top-level-must-be-an-object requirement is really for
indicating schema information in-band.  But we already rely on
indicating format out of band (via MIME type).  I find in-band schema
signalling in JSON to be a bad idea, especially when we can do it
out-of-band anyways.

Question: can schema information be encoded as a parameter to the
application/json media type?

Something like Content-Type: application/json; schema=FooBar .

Nico
--