Re: [Json] I-JSON

Ladislav Lhotka <lhotka@nic.cz> Mon, 14 November 2016 08:31 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 19A9F1295BE for <json@ietfa.amsl.com>; Mon, 14 Nov 2016 00:31:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.497
X-Spam-Level:
X-Spam-Status: No, score=-8.497 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.497] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 T_MmJHczxX-I for <json@ietfa.amsl.com>; Mon, 14 Nov 2016 00:31:12 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D2E01293E3 for <json@ietf.org>; Mon, 14 Nov 2016 00:31:12 -0800 (PST)
Received: from [10.0.10.26] (unknown [211.44.215.72]) by mail.nic.cz (Postfix) with ESMTPSA id CB0F4613D2; Mon, 14 Nov 2016 09:31:09 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1479112271; bh=a42EPRb9lCH1C9kgVyEfpZ5yO/iTdVObscMp3G7Vgfk=; h=From:Date:To; b=FAQAz39dksknXI4LmT2g/2KFkkdWvDwH18ccwyJCPuKZ4mURGDanmTRp0zENf57MA SFG0NlF2V/vcTZSlT5nIejlrOnyCmKHsP/YR9CE+/JtWwMfl2GXhLZiMVyGPqOr2BH iJe9i8TNK6ogrtufXW4O8eWl2nBdTEokY5jI+Fsk=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <CD8E44F2-3B0F-46A4-B50E-091ED67F5553@mnot.net>
Date: Mon, 14 Nov 2016 17:31:04 +0900
Content-Transfer-Encoding: quoted-printable
Message-Id: <541B4A9D-97F4-4335-8B82-49682EE46D78@nic.cz>
References: <CD8E44F2-3B0F-46A4-B50E-091ED67F5553@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.3251)
X-Virus-Scanned: clamav-milter 0.98.7 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/qsprExEEeJsIhKpqUfZjN-sNvSA>
Cc: json@ietf.org
Subject: Re: [Json] I-JSON
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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, 14 Nov 2016 08:31:14 -0000

> On 14 Nov 2016, at 13:03, Mark Nottingham <mnot@mnot.net> wrote:
> 
> It seems like I-JSON is the answer to many of the issues that have cropped up with JSON.
> 
> However, as a protocol designer, it's not terribly useful to specify I-JSON, because it's very likely that people will just use their existing JSON tools.

My understanding of I-JSON is that it specifically allows people to use their existing JSON tools. In RFC 7951 we use I-JSON and, for example, encode 64-bit integers as strings even though it is awkward and adds extra processing steps in most tools.

Lada
  
> 
> A simple answer might be to define a new media type that has a header that's guaranteed to break a JSON parser prepended, but I-JSON as the body.
> 
> It might be that people just strip the header and continue to process as JSON, but they have to actively do that, which may be enough of a bar to discourage it (and encourage I-JSON tools to bloom).
> 
> Of course, we could define a syntax that's more deeply incompatible with JSON. Not sure if that's necessary, though.
> 
> Thoughts? 
> 
> 
> --
> Mark Nottingham   https://www.mnot.net/
> 
> 
> 
> 
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C