From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32793: 27.0.50; json-parse-string doesn't have the equivalent of json.el's json-array-type Date: Thu, 11 Apr 2019 19:46:14 +0300 Message-ID: <83o95c4hih.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22276"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mail@xuchunyang.me, 32793@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 18:47:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEcr2-0005fC-D3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 18:47:12 +0200 Original-Received: from localhost ([127.0.0.1]:52117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEcr1-00019j-AH for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 12:47:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEcqu-00018f-Se for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 12:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEcqt-0005Rh-7J for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 12:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEcqs-0005RH-68 for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 12:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hEcqs-00016r-05 for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32793 X-GNU-PR-Package: emacs Original-Received: via spool by 32793-submit@debbugs.gnu.org id=B32793.15550012064244 (code B ref 32793); Thu, 11 Apr 2019 16:47:01 +0000 Original-Received: (at 32793) by debbugs.gnu.org; 11 Apr 2019 16:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:55106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEcqa-00016M-CZ for submit@debbugs.gnu.org; Thu, 11 Apr 2019 12:46:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEcqY-000167-5x for 32793@debbugs.gnu.org; Thu, 11 Apr 2019 12:46:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEcqS-0005G7-7k; Thu, 11 Apr 2019 12:46:36 -0400 Original-Received: from [176.228.60.248] (port=3829 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hEcqP-0004sP-Vc; Thu, 11 Apr 2019 12:46:36 -0400 In-reply-to: (message from Dmitry Gutov on Thu, 11 Apr 2019 19:26:23 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157509 Archived-At: > From: Dmitry Gutov > Date: Thu, 11 Apr 2019 19:26:23 +0300 > > On 21.09.2018 15:56, Xu Chunyang wrote: > > > We can parse JSON Array as Lisp List with json.el, e.g., > > > > (let ((json-array-type 'list)) > > (json-read-from-string "[1,2,3]")) > > ;; => (1 2 3) > > > > but the new json-parse-string doesn't have the equivalent, thus porting > > existing code to using json-parse-string might be difficult. > > I also stumbled on this problem when trying to port existing code to > native JSON. Sounds like a simple extension of the existing code, so patches are welcome to implement this feature.