We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64770f6 commit 1810008Copy full SHA for 1810008
src/encoding/json/encode.go
@@ -119,8 +119,8 @@ import (
119
//
120
// Map values encode as JSON objects. The map's key type must either be a
121
// string, an integer type, or implement encoding.TextMarshaler. The map keys
122
-// are used as JSON object keys by applying the following rules, subject to the
123
-// UTF-8 coercion described for string values above:
+// are sorted and used as JSON object keys by applying the following rules,
+// subject to the UTF-8 coercion described for string values above:
124
// - string keys are used directly
125
// - encoding.TextMarshalers are marshaled
126
// - integer keys are converted to strings
0 commit comments