Re: [Json] I-JSON

Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 14 November 2016 06:23 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 CF41B129420 for <json@ietfa.amsl.com>; Sun, 13 Nov 2016 22:23:34 -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 T5hZa-uAZ9sB for <json@ietfa.amsl.com>; Sun, 13 Nov 2016 22:23:27 -0800 (PST)
Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 D576D1295D1 for <json@ietf.org>; Sun, 13 Nov 2016 22:23:26 -0800 (PST)
Received: by mail-wm0-x22e.google.com with SMTP id t79so79044276wmt.0 for <json@ietf.org>; Sun, 13 Nov 2016 22:23:26 -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=j4lXyemWG6oSCMgpoRU/enycZpFTwhzvNXP6OR6OH/k=; b=qI34fU/IyXq73yOHRhFi03fjcYBjiL1rnuBapexlx6VT2D2AlZgvYZgUVX/93z6LyP M1CZr9HEyPaLXlKRx/fugU/9+Y5jC8oSiOp0EHDkeChkEvcqcsrMMhrSM8EydaQpSil+ DYCQUrUuzaCKFYGB311sOZnJy2F2qyqFRvbpOlOdYCHKJjnyEn75tUjzDvv5PQdAWQUC cTIDQb9S9r1E1wPGfFz1H/opyyX1wxOgUxieeUzXNGPOYpoG8mEFhRE5T3u3RTGLr5bS 9rLBLkFRaXjMZDUHmLGPGuF8KbAR/wq1bNxuFT3lSPDINFejlUY8vP02BzN2sy8lJHDB qPUQ==
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=j4lXyemWG6oSCMgpoRU/enycZpFTwhzvNXP6OR6OH/k=; b=gINyCKz6yJ4HMFC/zrgIhom9kI6bT89YDjJiSFPOI7hxvPZTfLFVcjEUf0Il4j2Rt6 d+vZVzI8gGHYK8Wnu8r653xOeDbB7Im2ZvshIB5hFWoG0g7nbm+9c9OJdBCPxhkKFH8K F41TWHdHlTxIgRdV9U3EicCQ5H4SXKTy94GQnKSYWiStaBXIO+wSCVE1eF74uJa4g8mb QjNAJcaqCi0vM1vOT7JfCWhqeLxKzJbGxdcQnT8oZEUT+2FdWUl/f+9D5jkXGq2OmzXp KFY95yHhKXvd5Zxdlrh6YXURZbpcTWSrBdgGaiEdhJHWcGoX7UUt3DJ1eVnul9IeK70V ypeA==
X-Gm-Message-State: ABUngveZFEa2UwUpxZlZt1DFYsLkUiSmeH5rkcuAFm2lfNacg+ejQLDJb6zOkT2v+7x0kw==
X-Received: by 10.194.100.225 with SMTP id fb1mr17977293wjb.128.1479104605120; Sun, 13 Nov 2016 22:23:25 -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 ia7sm26584704wjb.23.2016.11.13.22.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 22:23:24 -0800 (PST)
To: Mark Nottingham <mnot@mnot.net>, json@ietf.org
References: <CD8E44F2-3B0F-46A4-B50E-091ED67F5553@mnot.net>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <6fb75362-dc25-e5ff-ca0d-587c90f1060e@gmail.com>
Date: Mon, 14 Nov 2016 07:23:15 +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/xvkYwc8IPtcO0OjP01IpqEZSvOs>
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 06:23:35 -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?

The differences between I-JSON and a "sensibly use" of traditional JSON appears to minimal.

If people really want to go further, TJSON is yet another alternative in the workings:
https://www.tjson.org/

Personally I stick to the ES6 definition which is supported by Node.js, Browsers, Java and then some.

That ES6 (in contrast to the other variants) also defines property serialization order makes it highly adapted for cryptographic operations like hashing without any "extras."  A plain JSON.stringify() suffice.

Anders

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