[Json] Mapping scheme? Was: I-JSON

Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 14 November 2016 06:44 UTC

Return-Path: <anders.rundgren.net@gmail.com>
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 8C3F1129459 for <json@ietfa.amsl.com>; Sun, 13 Nov 2016 22:44:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 WYSsT3z8L8y8 for <json@ietfa.amsl.com>; Sun, 13 Nov 2016 22:44:49 -0800 (PST)
Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92EDB129420 for <json@ietf.org>; Sun, 13 Nov 2016 22:44:49 -0800 (PST)
Received: by mail-wm0-x22f.google.com with SMTP id f82so79779258wmf.1 for <json@ietf.org>; Sun, 13 Nov 2016 22:44:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=zXxIlwLx0SdtZlN40J5xkkGl+y3B7u5iIqIxzUipdAQ=; b=1DNd9CMfP6Nr4oCBdTgwqHlgFu5vNxN5kAz/yc2gf6jmBqs8EkNydl3UeFPu1QkOdt 8PlM7RLBXgS1mYdmYznnn9ZplIBxjJ/Sx9CYQQptGWV0hkDccZVP/P+5kIqSKl6ZDVoX D54gNcLQQlsgPo22Tu3RKa0+kkSpp+99346Ksz0bsfaSBpfAnxN1MXcftx81nmVHQRlv CMniz5Nmv/eGl+gCjNONYJXINGJdIk2kOXke69gbcMhHo7hIRetRKJ2h1VWTe7YxsjH1 buq0nodhfO/ss17ZGnpKtjtqJSMizZC0aGNi4wMSbV+ryj4jGOX3O33ex5xdQRN0IP7O lbrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zXxIlwLx0SdtZlN40J5xkkGl+y3B7u5iIqIxzUipdAQ=; b=dwxYk7ppk5iAMp/qy99knSX33f+TaFl62cZWwuPrE4qp8oRYvMX9Jk9k0LqH3y8J1m 0wsGO/4nJGZBM+8SwjPNBVN5J4w9JGav+bu5mwQqVXElkNU7Q0Qr3Y8bN0v6lM1gBpx2 /ZYpLzZ4gUwXwS+hryLF6ucNlIkZRFg2q6R15K844wHUgLLO1e4Uqd0mKF8W9JOdwg3R BJMAAvYOEoP6KtS7S9bhvWQpOIQktwlqc2KaaaiZtpgryI2P76Rqy3iipji423dLb+T/ PrugUYDpCoiQK5BEKLaq3hr66/BYNumDfoNufDjMz7Xx7V28eTOrVYz1mTic3l2OmGuN fI7A==
X-Gm-Message-State: ABUngvdb6BRQUbzx0EiXT7wyuGTvXxvgVujGIqK4264Qx4xUQl/RrYlvFaCu+df1Aeyx9A==
X-Received: by 10.28.26.197 with SMTP id a188mr8522125wma.93.1479105888130; Sun, 13 Nov 2016 22:44:48 -0800 (PST)
Received: from [192.168.1.79] (124.25.176.95.rev.sfr.net. [95.176.25.124]) by smtp.googlemail.com with ESMTPSA id 18sm34280654wmr.5.2016.11.13.22.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 22:44:46 -0800 (PST)
To: Mark Nottingham <mnot@mnot.net>, "json@ietf.org" <json@ietf.org>
References: <CD8E44F2-3B0F-46A4-B50E-091ED67F5553@mnot.net>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <c089c281-a97e-c74f-30ca-9bf1c42876ab@gmail.com>
Date: Mon, 14 Nov 2016 07:44:38 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <CD8E44F2-3B0F-46A4-B50E-091ED67F5553@mnot.net>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/aFICF9fImvjr5A7hO8sxdTb4ENU>
Subject: [Json] Mapping scheme? Was: 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 06:44:51 -0000

On 2016-11-14 05:03, Mark Nottingham 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.
>
> 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?

Hi Mark,

As I wrote in the reply to your message I consider ES6 to be a (de-facto) successor to I-JSON.

What's maybe missing is a standardized mapping scheme since lots of people need to emulate additional data types on top of a JSON "string".

The scientific people want 80-bits IEEE
The Java/Python/C# folks want true 64-bit integers
The crypto geeks want really big integers
The financial guys want big decimals

The only change that is needed on the JSON level is making comments a standard so that JSON becomes a logical choice for "config" files as well.
It appears to be close to a de-facto standard already.

Anders

>
>
> --
> Mark Nottingham   https://www.mnot.net/
>
>
>
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>