[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21488: json-pretty-print-buffer works,but...
From: |
Stefan Monnier |
Subject: |
bug#21488: json-pretty-print-buffer works,but... |
Date: |
Sat, 03 Oct 2015 13:54:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> 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
- bug#21488: json-pretty-print-buffer works,but..., Simen Heggestøyl, 2015/10/08
- bug#21488: json-pretty-print-buffer works,but...,
Stefan Monnier <=
- bug#21488: json-pretty-print-buffer works,but..., Simen Heggestøyl, 2015/10/08
- bug#21488: json-pretty-print-buffer works,but..., Stefan Monnier, 2015/10/08
- bug#21488: json-pretty-print-buffer works,but..., Simen Heggestøyl, 2015/10/08
- bug#21488: json-pretty-print-buffer works,but..., 蔡君琦, 2015/10/09
- bug#21488: json-pretty-print-buffer works,but..., Simen Heggestøyl, 2015/10/15
- bug#21488: json-pretty-print-buffer works,but..., 蔡君琦, 2015/10/14
- bug#21488: json-pretty-print-buffer works,but..., Simen Heggestøyl, 2015/10/17
- bug#21488: Re:bug#21488: json-pretty-print-buffer works,but..., 蔡君琦, 2015/10/18