[semidet,multifile]json_dict_pairs(+Dict,
-Pairs)This hook may be used to order the keys of an object. If it fails,
dict_pairs/3 is used which produces an
ordered list of keys.
- Extended in 8.5.1 (👉c851ee9) JSON writer for dicts now have a hook json_dict_pairs/2 that allows the user to select keys from the dict and particularly define the order of keys in the resulting JSON.