Re: [Json] JSON or I-JSON?

John Cowan <cowan@ccil.org> Fri, 26 February 2021 22:12 UTC

Return-Path: <cowan@ccil.org>
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 133013A0D63 for <json@ietfa.amsl.com>; Fri, 26 Feb 2021 14:12:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ccil-org.20150623.gappssmtp.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 DmTn_hvJz6GJ for <json@ietfa.amsl.com>; Fri, 26 Feb 2021 14:12:31 -0800 (PST)
Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (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 D4A2C3A0D66 for <json@ietf.org>; Fri, 26 Feb 2021 14:12:30 -0800 (PST)
Received: by mail-qk1-x72b.google.com with SMTP id x124so10769031qkc.1 for <json@ietf.org>; Fri, 26 Feb 2021 14:12:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wesPHJKBkqRUQQTghaGi4Jmwjt8BZxgadYhQW+YU7AE=; b=vs78WgynOpe43IBJZdlsryER5wgjlztLkh/NNlRKy59FyKiOeF8bAaDSn5wWtKc6du vLMEG10t3tjul3HzBKROC48yUfINueRJrhft0A76eo1KLZ4mdHJI0xz8ChP5B+3qIEFU HqgMBZQMdsZH5aSAFO0ckF9uG1fllWQ2F766YiLv7c3KshAGiUkjKbUzBck4Pi0zX8Pb P2zgEft0oLtdHr4RRNUfNqe/lf9oc1yTQbCDXDjTO9FPeNrnzrMednhdaR8J2CGeIBxt z+6WIZxXAzBxdntI/S9tig6t96CvSVNUW2yFvpiWZxmLus4I19nRot34AHKTklakw4B4 g6tQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wesPHJKBkqRUQQTghaGi4Jmwjt8BZxgadYhQW+YU7AE=; b=fE3IhM3rFn/cV3T3R7V1qHAWSXJRGkVKj0UY9CWCtJCmBGcbghRfV8wB2ugG3nHVl0 dWiUP5V3SoOlQhlA82I/wbRvw+sTpHolR8Aa6aVOUzi/TkIGawfw+wqATQpSffZcftm3 vOABrd8twMMNU39yaVamR4tSE4FTMgo9lLei1kNPETfbImAPTsMhoqId7jjlRVFDYvNW T7XSiOk4WglFvsdnGqM76BLdfzoPrwyjEG7xwWjP0cr2No7tR5DFJp7fvsOOTuOkZk6H D511qEk9cVqCcvzKSdYr/YR5fKwS4n5kyQdZTY11gM/2bOTSj+bmO9s6UUk5vpe7esHe LWiw==
X-Gm-Message-State: AOAM530DToFxyIjUkLRwJI7/pw2IZFE6UdPyOKHYzKFL8kcNqU4v12df Hnf5T8pMIEJGOf4111GX8sjA0NWrJThSuEiRUeCDpA==
X-Google-Smtp-Source: ABdhPJxBxVWMKWDpWsOGBtzjho4pNxcn+nxA15bwkaK9o8GvSYMc83AlUJ5EmGaK3O9Ik0IMp/J+7wVfGyxCaL3G/1w=
X-Received: by 2002:a37:a151:: with SMTP id k78mr4772386qke.359.1614377549757; Fri, 26 Feb 2021 14:12:29 -0800 (PST)
MIME-Version: 1.0
References: <90cddfc3-c320-5ac0-210b-c77636383a6b@codalogic.com> <1c819bc9-283d-e36b-7de2-507553420faa@gmail.com> <CAD2gp_TKzBkK=G6PrSKmLyg=67MmFdszCi7X1LVeoO89r63jQA@mail.gmail.com> <ce21b4d4-b384-6428-7002-0f029eb6918f@codalogic.com> <CAHBU6iv0E2111g99Y4AzX1MWhPAE=SsZxnU9y9zQHUuEAWgVqg@mail.gmail.com> <CAE5tNmoGNEaxE1MxYAouq_UkFj48L6VLG-tgLL5r5OpKnHy+kA@mail.gmail.com>
In-Reply-To: <CAE5tNmoGNEaxE1MxYAouq_UkFj48L6VLG-tgLL5r5OpKnHy+kA@mail.gmail.com>
From: John Cowan <cowan@ccil.org>
Date: Fri, 26 Feb 2021 17:12:18 -0500
Message-ID: <CAD2gp_S3rWnx=tR7ka=FRg+eYx6b78NdMUpR56Cp_QML2bD0Lg@mail.gmail.com>
To: David Kemp <dk190a@gmail.com>
Cc: Tim Bray <tbray@textuality.com>, Pete Cordell <petejson@codalogic.com>, "json@ietf.org" <json@ietf.org>, Anders Rundgren <anders.rundgren.net@gmail.com>
Content-Type: multipart/alternative; boundary="00000000000063482505bc44906b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/joTGrzBSgtHs-aFqsVhSikluWwE>
Subject: Re: [Json] JSON or I-JSON?
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 26 Feb 2021 22:12:33 -0000

On Fri, Feb 26, 2021 at 12:41 PM David Kemp <dk190a@gmail.com> wrote:

If you are designing a protocol that uses, for example, Reputons (
> https://tools.ietf.org/html/draft-ietf-repute-media-type-13#section-3.1),
> and a Reputon can contain megabytes of malware, or mpegs of cats being
> cute, or 14th century pornography (
> https://github.com/oasis-tcs/openc2-usecases/blob/master/Cybercom-Plugfest/TestData/slpf%2Bacme/commands/bad/create_poetry.json),
> that isn't necessarily a good thing for the Internet.
>

Nevertheless, there are many contexts where must-ignore is entirely
appropriate.  If I am checking your ID card against a list of authorized
visitors, all I need to know is how to find your picture and your name:
whatever other fields may be present are quite irrelevant to me.  (Not
always so easy: probably a hundred traffic tickets were written in Ireland
in 2006-09 in the name of Prawo Jazdy, which is, alas, merely the Polish
for "driver's license".)

In any case, simple limitations on the length or nesting depth of a
structured document should be enough to eliminate all the problems you
mention.



John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
    "Mr. Lane, if you ever wish anything that I can do, all you will have
        to do will be to send me a telegram asking and it will be done."
    "Mr. Hearst, if you ever get a telegram from me asking you to do
        anything, you can put the telegram down as a forgery."