* lisp/json.el: Add pretty-print option.
authorRyan Crum <ryan.crum@eleostech.com>
Fri, 14 Dec 2012 14:57:37 +0000 (09:57 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Dec 2012 14:57:37 +0000 (09:57 -0500)
commitd72e9e922fb914a946e104ad2128f57c983ab75d
tree28033212d18d659b1f7f16cee58dfd6482041bab
parent5c207910c4899af1c547b0e508692d846c145d48
* lisp/json.el: Add pretty-print option.
(json-encoding-separator, json-encoding-default-indentation)
(json--encoding-current-indentation, json-encoding-pretty-print)
(json-encoding-lisp-style-closings): New vars.
(json--with-indentation): New macro.
(json-encode-hash-table, json-encode-alist, json-encode-plist)
(json-encode-array): Use it to obey json-encoding-pretty-print.
(json-pretty-print-buffer, json-pretty-print): New commands.

Fixes: debbugs:12634
lisp/ChangeLog
lisp/json.el