From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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, 6 Dec 2020 21:26:39 +0200 Message-ID: <3329c943-0a5f-811e-bc50-7fe425b05ea7@yandex.ru> References: <877dpxnah5.fsf@gnus.org> <87a6us1b37.fsf@tcd.ie> <87tuszcaxn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21096"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: "Basil L. Contovounesios" , Henry Minsky , 45032@debbugs.gnu.org To: Philipp Stephani , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 20:27:12 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 1klzgd-0005Mh-Tv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 20:27:11 +0100 Original-Received: from localhost ([::1]:58842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klzgc-0004Zc-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 14:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzgU-0004Yv-Ap for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klzgU-0003mx-3R for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klzgU-0000O6-0K for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 19:27:01 +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.16072828101472 (code B ref 45032); Sun, 06 Dec 2020 19:27:01 +0000 Original-Received: (at 45032) by debbugs.gnu.org; 6 Dec 2020 19:26:50 +0000 Original-Received: from localhost ([127.0.0.1]:51359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzgI-0000Ng-GJ for submit@debbugs.gnu.org; Sun, 06 Dec 2020 14:26:50 -0500 Original-Received: from mail-ej1-f49.google.com ([209.85.218.49]:34090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzgG-0000NS-H1 for 45032@debbugs.gnu.org; Sun, 06 Dec 2020 14:26:48 -0500 Original-Received: by mail-ej1-f49.google.com with SMTP id g20so16423436ejb.1 for <45032@debbugs.gnu.org>; Sun, 06 Dec 2020 11:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6SAoKxnwaaX7Q0ctVviN+F5PBoTeEK8LQjyx+B/kho4=; b=BCgoVttXEgKziHRhc8tvBX5gvaR9j0LLarjh3/UNQut4nFcc03vO23oEu7DolGwKh+ 1IhQzaozrtaQ3uucgDwK9kruJi3f6kQTH4HoyvJxYTzd6tvbattx6auI7Jtrc+0v+sEg wNswi/avCyD03jE9h4BuP2ekurq5yCtCD7rPqenkK0OdApAuU9zu/T2Akt5z44JltK1F 5ZcQX6HNBNghECXscneIAgtvb9iM9TqmUDG9dbdc7Hkh2MiLLlUMC8RySz0JqGq8SA4B MfxpDrZC1vPaUwLu151uI2id7TGCj6+7fLe+TUulQFBeOOq9uWW7US0AuLSr9B71wOlK 04uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6SAoKxnwaaX7Q0ctVviN+F5PBoTeEK8LQjyx+B/kho4=; b=nrf6AR4WYGJnAz7QMzGCHdveDkWjlVUBub96qxo180GNYb5b1ZPjvdtN993SkMdXqx H4oQSSg50zN0OtqHzeQys9Ryke/r3+YGerH/Nh6wvzjl8+tPyaMqR3EyV5cib+d0mUJ3 vd0N2x23ABb9eBYRrk+9oMg22bB7wvfwGsLKOLXurWkwpoNicYHNJzOsYZD3Fp6g+c8n rTrdgTYlgbdzs1mKcR0MxTPlMlj/qvLEziibkPZQ4lQgP5NBGd5JR7Eq4/O8BTu/Ew7S LZzSRpSaHnXJ6fvKP7RbXQqrchw9gZ4bigXe4wQ9HboMRvcGomKoeYcucb51SBV9LRlE DnBA== X-Gm-Message-State: AOAM5333/kG0yWq8GpdE+EcuQIl2/miNWwN549Lcy6sAJfwH6ecl0Ttb WDHIDGSzvpiJ1gIftwa4ZVqStGqidXowPg== X-Google-Smtp-Source: ABdhPJw7fL+C2xTVH8na1FM8v/7HUe5CxMoM2UmdE21FQ6GfTyvgc6Fwv9OxH/yxNIWC3YaFLJKQuA== X-Received: by 2002:a17:906:4058:: with SMTP id y24mr15615676ejj.245.1607282802588; Sun, 06 Dec 2020 11:26:42 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id a20sm9720615edr.70.2020.12.06.11.26.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Dec 2020 11:26:41 -0800 (PST) In-Reply-To: Content-Language: en-US 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:195161 Archived-At: On 06.12.2020 19:02, Philipp Stephani wrote: > I designed the C JSON > functions partially because I disagree with some aspects of API design > and behavior of the Elisp functions, so they are pretty much > incompatible on purpose 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}"