From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#45032: 26.3;
json-pretty-print of JSON with dict containing 't' as a key causes
error
Date: Sat, 5 Dec 2020 20:35:42 +0100
Message-ID:
References:
<877dpxnah5.fsf@gnus.org> <87a6us1b37.fsf@tcd.ie>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="22630"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Lars Ingebrigtsen , 45032@debbugs.gnu.org,
Henry Minsky
To: "Basil L. Contovounesios"
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 20:37:14 2020
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1kldMm-0005k2-RJ
for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 20:37:12 +0100
Original-Received: from localhost ([::1]:41464 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1kldMl-00005N-Ti
for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 14:37:11 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51488)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1kldMc-00005D-Of
for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 14:37:02 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:36703)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1kldMc-0008HA-HY
for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 14:37:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1kldMc-0002PH-Ep
for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 14:37:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 05 Dec 2020 19:37:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 45032
X-GNU-PR-Package: emacs
Original-Received: via spool by 45032-submit@debbugs.gnu.org id=B45032.16071969629156
(code B ref 45032); Sat, 05 Dec 2020 19:37:02 +0000
Original-Received: (at 45032) by debbugs.gnu.org; 5 Dec 2020 19:36:02 +0000
Original-Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kldLd-0002NY-WD
for submit@debbugs.gnu.org; Sat, 05 Dec 2020 14:36:02 -0500
Original-Received: from mail-oi1-f169.google.com ([209.85.167.169]:38249)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kldLc-0002NH-1X
for 45032@debbugs.gnu.org; Sat, 05 Dec 2020 14:36:00 -0500
Original-Received: by mail-oi1-f169.google.com with SMTP id o25so10484815oie.5
for <45032@debbugs.gnu.org>; Sat, 05 Dec 2020 11:35:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=UOUFB8qBBVXzdlKKK/HIWi/D3yc1FepR6AleiGUg424=;
b=VR55DJCdJbtdRiTsWIlvgzFtduIqK1HspGc76JpUZkPBMOodqmFhqPXy4JNqwQKnZz
WO0s8xxJ1vhCnAskUvEWs8c997i5Fmd8IrO08sU8MnWXjQCpf43z3oRnVj1DZQFAcgN5
b70Vtp6w0f5gFBj1+5zSVU7MnuTp36B1XQ7zmFNtY/UfcGPULWM9y/X7FteVgO+5zGLi
fsqQ6R6OFVa2iKo7ByYLu4ZlTUQOUcAQ4GRX1I5O21vwDZ9ifrdcyKAH/34OlgdBuV0Z
Oyb92TraNC0q6ICvqOppcF1+ilTadrwg8afsNaAA235hWqnWze2b2BAb78emDb2DSgEg
aoXw==
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=UOUFB8qBBVXzdlKKK/HIWi/D3yc1FepR6AleiGUg424=;
b=AgETTOxyO3gDg9n/SeflXoQm/Xc3nQ1oO+kOSADILU7SU2yp0mK03jnL18bzjqPgeM
i/gcHyzWJk7P6GoqvMw/kUpbAUlcJg0kRJQsvJZxMz2AX6R3kYZhAdHS0mggNmAWWG+R
/wegp2wuSOpIqV13anyHMLjhTQ5hU5FPCe0W4DxpftXtdmFtoWSFaKTVJZUgZe2AqANw
TMVSfGsfhShvKAqvbSms/mBDk69VfNkZp7bmXymxD7hH0vAu/9zOM+LiTD66KD6wFV/0
sI+7KgftPdJH+ug10p90j+Vvpcexafhoa+wXGk1iEI1f9JZSzmUa2DLKyFtKeTcNgVra
BPRg==
X-Gm-Message-State: AOAM532kgFOfuxa+a4lngZFk9x2LP71ovDpk5eQkhm/BekU/hfAirBhB
Q2mOzRiU8ju+lax74IHwAS7sLWCe5tN0hNwNu5E=
X-Google-Smtp-Source: ABdhPJyaQoVkxcf9X/02lCEd/th4VkKzMgXLzxoXynoyN/s21DMOChDnU9Jgt3E8tJCdRUZe2wgEo6+7PfRUZU9hC7U=
X-Received: by 2002:aca:1b0a:: with SMTP id b10mr7201242oib.9.1607196954229;
Sat, 05 Dec 2020 11:35:54 -0800 (PST)
In-Reply-To: <87a6us1b37.fsf@tcd.ie>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:195046
Archived-At:
Am Sa., 5. Dez. 2020 um 17:26 Uhr schrieb Basil L. Contovounesios
:
>
> forcemerge 42545 45032
> quit
>
> Lars Ingebrigtsen writes:
>
> > So I don't know how to fix this. We could add another kludge -- saying
> > that a boolean used as an object key "obviously" should be a string
> > instead (when converting back to JSON)? Opinions?
>
> This is a duplicate of https://debbugs.gnu.org/42545.
>
> I think it's important that native and Elisp JSON serialisation are as
> consistent as possible here;
I don't think that's realistic: any change in behavior to either of
these functions would be a breaking change.