[Json] Erratum update: "JSON is a subset of JavaScript"

Rob Sayre <sayrer@gmail.com> Tue, 29 August 2023 18:45 UTC

Return-Path: <sayrer@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 ABF37C151548 for <json@ietfa.amsl.com>; Tue, 29 Aug 2023 11:45:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.105
X-Spam-Level:
X-Spam-Status: No, score=-7.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pUAyslv-DjVj for <json@ietfa.amsl.com>; Tue, 29 Aug 2023 11:45:12 -0700 (PDT)
Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74190C14CE31 for <json@ietf.org>; Tue, 29 Aug 2023 11:45:12 -0700 (PDT)
Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-52bcd4db4c0so267058a12.0 for <json@ietf.org>; Tue, 29 Aug 2023 11:45:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693334710; x=1693939510; darn=ietf.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NTRM+8gZJ9D2J9doNw/FzHY3TI2RJ74KHc6vga6hSnI=; b=rUOtqiUCFJLhskMCZjpN2yRNMLHfgFiJR6TJ2xI2RrJhOOLJa8hLGBfwMpRvy69zdo mXsdipptTsK4fbVHItoPJDie+CzVzGVD32Q+ZJOksDPHyzKTM8thCShXsPSxloqlq4uT So6MzxlTizansxgeOoxc15A6TI7/sqzgqNTWJsCmj0rNFjxBHrfUkFb0XHwIzRlQOrhK 0AbxU04FcEOgZkE1YJ3FzJK6GfRV4C2WhbrtvD68ovlP9mVqBqIDeRF5gqm3wYBhEJ7x RLQAnptMh7cGF65htPcORo6tOXrLiKBDspv/i0bdLIm2z6SDdImT9hXKZlPhwngCEqqS oTaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693334710; x=1693939510; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NTRM+8gZJ9D2J9doNw/FzHY3TI2RJ74KHc6vga6hSnI=; b=abE4TnlHHgY9X5RfQt4rlcsSzAGKFXjpR+WzHafxAOwaOK1IBe7lupxgFnIlVYXzO5 ZH4uWw0oCojRACgcFIJxBbmWfhzv7hdiRVXTu0GM7NrwH7c+SNZnJmMl4llcg8QRo00d mNv+d25hqB46CgucHRKyN2bqnDVRKLZp1YJrnRnQ53CSDhiOilv/C4wxAQa7uGeQiH7M O+DKW+K5c6VLNIUTuglAsQ0rQVZrYfJtEyOOsh7EAZT5HZr0wrsTfm/cY3Hxda7G8LO3 dpxdXZP8y4SzgXa6QZrzM6NiRjZv3nSqzIj2keeVoberUjoKTlQoQlcwVj9LRQ4v9Xek DveQ==
X-Gm-Message-State: AOJu0YzvlLGUvD3pygnrLtU1ZqSAnqdLD0G93VXcqacrL5Rjupqe+YeX mLl0oUwDnjm4Y8mjJpgT1sC9s4uN/DMzRfpNQneeuqDhBwiyFQ==
X-Google-Smtp-Source: AGHT+IG6Juq/UkmyDPozUBENRXC2QyKUZ9IsTPav5PTkLX4PcuxueHg9uTlumwdTH0PMcQA3HfVBjkei2Q34PjtDzzI=
X-Received: by 2002:a05:6402:4412:b0:52a:586a:b19a with SMTP id y18-20020a056402441200b0052a586ab19amr3748428eda.21.1693334710428; Tue, 29 Aug 2023 11:45:10 -0700 (PDT)
MIME-Version: 1.0
From: Rob Sayre <sayrer@gmail.com>
Date: Tue, 29 Aug 2023 11:44:58 -0700
Message-ID: <CAChr6SxFx=v_1HF0b4T662Cc24S=19L9va0rYJ52g5FNfnqwAg@mail.gmail.com>
To: JSON WG <json@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e6a7170604143584"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/5WdDSvxkeGxp4JnJcbE_Sfhk27g>
Subject: [Json] Erratum update: "JSON is a subset of JavaScript"
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 29 Aug 2023 18:45:16 -0000

https://www.rfc-editor.org/errata/eid5218

Hi,

This report was correct in 2017. However, ECMAScript 2019 changed JS
syntax to allow the characters mentioned in the report. From the ECMA-262
changelog:

"Updated syntax included optional catch binding parameters and allowing
U+2028 (LINE SEPARATOR) and U+2029 (PARAGRAPH SEPARATOR) in string literals
to align with JSON."

It seems about 94% of browsers worldwide allow these characters in JS
string literals now, and the last major browsers to ship without this
change are from 2018.

So, I think we can reject this one, as the proposed change will become
increasingly incorrect.

thanks,
Rob