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
first time Unmarshal map is:map[119110010:map[000000:1] 11911007:map[119110010:1 119110011:1 119110012:1 119110015:1 11911004:1 11911005:1 11911006:1 11911007:1]]
second time Unmarshal map is:map[1911007:map[000001:1]]
What did you see instead?
See:
first time Unmarshal map is:map[119110010:map[000000:1] 11911007:map[119110010:1 119110011:1 119110012:1 119110015:1 11911004:1 11911005:1 11911006:1 11911007:1]]
second time Unmarshal map is:map[119110010:map[000000:1] 11911007:map[000001:1]]
The text was updated successfully, but these errors were encountered:
// To unmarshal a JSON object into a map, Unmarshal first establishes a map to
// use. If the map is nil or not, Unmarshal allocates a new map.
func UnmarshalDeep(data []byte, v interface{}) error {}
seankhliao
changed the title
json.Unmarshal not work good at object
proposal: encoding/json: option to clear output before unmarshal
Nov 4, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The lastst release is also reproduce
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
See:
What did you see instead?
See:
The text was updated successfully, but these errors were encountered: