mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
encoding/json: document case-insensitive Unmarshal key matching
Fixes #4664. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7237060
This commit is contained in:
parent
354a3a1513
commit
956cd0059c
1 changed files with 4 additions and 0 deletions
|
|
@ -33,6 +33,10 @@ import (
|
|||
// the value pointed at by the pointer. If the pointer is nil, Unmarshal
|
||||
// allocates a new value for it to point to.
|
||||
//
|
||||
// To unmarshal JSON into a struct, Unmarshal matches incoming object
|
||||
// keys to the keys used by Marshal (either the struct field name or its tag),
|
||||
// preferring an exact match but also accepting a case-insensitive match.
|
||||
//
|
||||
// To unmarshal JSON into an interface value, Unmarshal unmarshals
|
||||
// the JSON into the concrete value contained in the interface value.
|
||||
// If the interface value is nil, that is, has no concrete value stored in it,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue