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: Sun, 13 Dec 2020 14:19:38 +0100 Message-ID: References: <877dpxnah5.fsf@gnus.org> <87a6us1b37.fsf@tcd.ie> <87tuszcaxn.fsf@gnus.org> <3329c943-0a5f-811e-bc50-7fe425b05ea7@yandex.ru> <56638b63-79a6-a543-4a43-5ee32a30d57e@yandex.ru> 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="32906"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 45032@debbugs.gnu.org, Henry Minsky To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 14:21: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 1koRJK-0008RY-CL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 14:21:14 +0100 Original-Received: from localhost ([::1]:35686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koRJI-0004tm-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 08:21:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koRIA-0004sV-RE for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 08:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koRIA-0005NJ-IH for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 08:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koRIA-0008GG-F8 for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 08:20: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: Sun, 13 Dec 2020 13:20: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.160786559731732 (code B ref 45032); Sun, 13 Dec 2020 13:20:02 +0000 Original-Received: (at 45032) by debbugs.gnu.org; 13 Dec 2020 13:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:47736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRI5-0008Fc-Bi for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:19:57 -0500 Original-Received: from mail-oi1-f172.google.com ([209.85.167.172]:38983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRI3-0008FB-N0 for 45032@debbugs.gnu.org; Sun, 13 Dec 2020 08:19:56 -0500 Original-Received: by mail-oi1-f172.google.com with SMTP id w124so12911765oia.6 for <45032@debbugs.gnu.org>; Sun, 13 Dec 2020 05:19:55 -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=g0oJN+i9DXyjin/+oAGZgRK40Po+drc1bYErPyzjEa8=; b=PZvHeUPejLupMDxYNZ/U6lR+gQU7quE1dBnkJlltxf7EqCRRHe4ZwKQF6V5IsnPxtZ jBnfxvoTGQ9zs4roXxxfwlmxjQSSVD31SdccydBhCM8toMSfd3GjzDvigS9L0yT/SgKi WskJ9Kn0ZYxMRcZdz2MiffI2evDecamSczI5h5WbSZWN2AqaUiGHr5iBgDw1jheGzQ92 XGue8C6JdB5RcnyttE5GsHEGIcNUcABaisSSuQIyR89JJKCvLQcJn0KnL32IEvxTjRaa ONSannrrwb/xHWzByK5Nkhqz/SIxM8i5EfpXXbXdJioG9ctYM1LukyuhH82+K1HyLeoQ wHNw== 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=g0oJN+i9DXyjin/+oAGZgRK40Po+drc1bYErPyzjEa8=; b=ftE9EQtnKxDkX/neTEKFFl/p1CJCIjuibmnG3KGQ7I8Vvz1vKGQc6Nr1QCXtmYwBVr 7D4zs8iUv+RPztu+eTVNL4CLnyo25UTn0hIOsfSUV9fZjAc5CRRb5JAYSqO3RLnlX4z4 UhDaL/JNptCPzZ3WObXpfLyoOZUgCcT0HwkZ6tJCNODr8UQbOhGpybOvhg6jboKTSedc cb9gZ0JpNHxnA4dO6Z4Y2dQzbDgwK9N5hQgEKB1WYEeTSfs37gMXEy10v+tD0NKm1C8C GYb+c1zM1chJ+5j9ZPWE7U9pPzq5QKsXDJad+iqjFlQ8EwYsVxQH7Ttiviyb3oDpSjWD /jpA== X-Gm-Message-State: AOAM532mFlHPbFUdB+mYycoczZY4Mzlu8/hDce50V7ADIwUG49W01Rn8 X/V94pE8EMBkvPGNNIQyaXc+FldATLD/PhwsIAI= X-Google-Smtp-Source: ABdhPJyZxSAdAL7CHOS6l4hSrTVfu8s562wv0MYykcZ+iimtJ5vEmLODZa28CDWBNxLLf0FtnCIdbfDMyQhrYcooBfI= X-Received: by 2002:aca:d4cf:: with SMTP id l198mr15229731oig.170.1607865590017; Sun, 13 Dec 2020 05:19:50 -0800 (PST) In-Reply-To: <56638b63-79a6-a543-4a43-5ee32a30d57e@yandex.ru> 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:195957 Archived-At: Am Sa., 12. Dez. 2020 um 22:25 Uhr schrieb Dmitry Gutov : > > On 12.12.2020 16:28, Philipp Stephani wrote: > >> So this difference in keywords serialization was by design? > >> > >> ELISP> (json-serialize '(:a 1 :b 2)) > >> "{\"a\":1,\"b\":2}" > >> ELISP> (json-serialize '((:a . 1) (:b . 2))) > >> "{\":a\":1,\":b\":2}" > > I can't answer that. When I wrote json.c, I had it only support > > hashtables, and list support is a later addition. > > Perhaps we could agree that there _are_ some things that can be fixed in > json.c's behavior, then? It doesn't matter what we can agree on, now that json.c is released into a stable release, we can't change its behavior any more (unless you're proposing to add new keyword arguments to json-serialize, which would still be possible).