From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: Junqi Cai <caijq4ever@163.com>, 21488@debbugs.gnu.org
Subject: bug#21488: json-pretty-print-buffer works,but...
Date: Sat, 03 Oct 2015 13:54:55 -0400 [thread overview]
Message-ID: <jwvh9m7etff.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87r3lcf4qm.fsf@gmail.com> ("Simen Heggestøyl"'s message of "Sat, 03 Oct 2015 15:42:25 +0200")
> JSON objects are by definition unordered, but I agree that it would be
> nicer if the prettification functions maintained the ordering by
> default.
Agreed.
> @@ -400,7 +401,9 @@ Please see the documentation of `json-object-type' and `json-key-type'."
> (signal 'json-object-format (list "," (json-peek))))))
> ;; Skip over the "}"
> (json-advance)
> - elements))
> + (if (eq json-object-type 'alist)
> + (nreverse elements)
> + elements)))
Don't we also need to reverse (tho differently) if json-object-type
is `plist'?
Stefan
next prev parent reply other threads:[~2015-10-03 17:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 16:00 bug#21488: json-pretty-print-buffer works,but Junqi Cai
2015-09-16 1:13 ` Stefan Monnier
2015-10-03 13:42 ` Simen Heggestøyl
2015-10-03 17:54 ` Stefan Monnier [this message]
2015-10-03 19:32 ` Simen Heggestøyl
2015-10-03 21:01 ` Stefan Monnier
2015-10-03 21:58 ` Simen Heggestøyl
2015-10-09 9:38 ` 蔡君琦
2015-10-13 17:49 ` Simen Heggestøyl
2015-10-14 10:16 ` 蔡君琦
2015-10-17 13:25 ` Simen Heggestøyl
2015-10-19 2:11 ` bug#21488: " 蔡君琦
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvh9m7etff.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=21488@debbugs.gnu.org \
--cc=caijq4ever@163.com \
--cc=simenheg@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.