unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: mail@xuchunyang.me, 32793@debbugs.gnu.org
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	[thread overview]
Message-ID: <83o95c4hih.fsf@gnu.org> (raw)
In-Reply-To: <b5ad6eb3-f335-fd56-7b48-d9e17997ed91@yandex.ru> (message from Dmitry Gutov on Thu, 11 Apr 2019 19:26:23 +0300)

> From: Dmitry Gutov <dgutov@yandex.ru>
> 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.





  reply	other threads:[~2019-04-11 16:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-21 12:56 bug#32793: 27.0.50; json-parse-string doesn't have the equivalent of json.el's json-array-type Xu Chunyang
2019-04-11 16:26 ` Dmitry Gutov
2019-04-11 16:46   ` Eli Zaretskii [this message]
2019-04-12  0:34     ` Dmitry Gutov
2019-04-12  9:22       ` Eli Zaretskii
2019-04-12 15:02         ` Dmitry Gutov
2019-04-12 15:26           ` Eli Zaretskii
2019-04-12 15:45             ` Dmitry Gutov
2019-04-12 17:42               ` Eli Zaretskii
2019-04-12 22:36                 ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83o95c4hih.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=32793@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=mail@xuchunyang.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).