You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
The quickest way to build a lexicographically sorted object was to use the serde_json::Value serializer, then ensure it doesn't contain any non-permitted values for canonical JSON.
Doing so, however, means we visit each node multiple times - which is strongly undesirable, and fixing this is the top priority.
The fix consists of completely reworking the serialization of maps (and by extension of all structures, since, for the sake of a JSON serializer, a structure is merely a map) to be represented as a BTreeMap, which is by default sorted by key.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The quickest way to build a lexicographically sorted object was to use the serde_json::Value serializer, then ensure it doesn't contain any non-permitted values for canonical JSON.
Doing so, however, means we visit each node multiple times - which is strongly undesirable, and fixing this is the top priority.
The fix consists of completely reworking the serialization of maps (and by extension of all structures, since, for the sake of a JSON serializer, a structure is merely a map) to be represented as a
BTreeMap
, which is by default sorted by key.The text was updated successfully, but these errors were encountered: