Variable: json-encoding-object-sort-predicate

json-encoding-object-sort-predicate is a variable defined in json.el.gz.

Value

nil

Documentation

Sorting predicate for JSON object keys during encoding.

If nil, no sorting is performed. Else, JSON object keys are ordered by the specified sort predicate during encoding. For instance, setting this to string< will have JSON object keys ordered alphabetically.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defvar json-encoding-object-sort-predicate nil
  "Sorting predicate for JSON object keys during encoding.
If nil, no sorting is performed.  Else, JSON object keys are
ordered by the specified sort predicate during encoding.  For
instance, setting this to `string<' will have JSON object keys
ordered alphabetically.")