Function: json-pretty-print-ordered
json-pretty-print-ordered is an interactive and byte-compiled function
defined in json.el.gz.
Signature
(json-pretty-print-ordered BEGIN END &optional MINIMIZE)
Documentation
Pretty-print the region with object keys ordered.
With prefix argument MINIMIZE, minimize it instead.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-pretty-print-ordered (begin end &optional minimize)
"Pretty-print the region with object keys ordered.
With prefix argument MINIMIZE, minimize it instead."
(interactive "r\nP")
(let ((json-encoding-object-sort-predicate #'string<))
(json-pretty-print begin end minimize)))