mirror of
https://github.com/golang/go.git
synced 2025-11-11 14:11:04 +00:00
encoding/json: document that object keys are sorted
Fixes #15424 Change-Id: Ib9e97509f5ac239ee54fe6fe37152a7f5fc75087 Reviewed-on: https://go-review.googlesource.com/23109 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
64770f642f
commit
181000896e
1 changed files with 2 additions and 2 deletions
|
|
@ -119,8 +119,8 @@ import (
|
|||
//
|
||||
// Map values encode as JSON objects. The map's key type must either be a
|
||||
// string, an integer type, or implement encoding.TextMarshaler. The map keys
|
||||
// are used as JSON object keys by applying the following rules, subject to the
|
||||
// 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:
|
||||
// - string keys are used directly
|
||||
// - encoding.TextMarshalers are marshaled
|
||||
// - integer keys are converted to strings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue