]> Cypherpunks repositories - gostls13.git/commit
encoding/json: ignore unexported fields in Unmarshal
authorRick Arnold <rickarnoldjr@gmail.com>
Tue, 22 Jan 2013 22:49:07 +0000 (17:49 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 22 Jan 2013 22:49:07 +0000 (17:49 -0500)
commit6e3f3af4e0f4293f868aa71c4271cab6344d5797
treef794140ffc7524b6c474b321da97edfb08897243
parent93d92d51ddccbbc689f4b9adeded4f310ba0c363
encoding/json: ignore unexported fields in Unmarshal

Go 1.0 behavior was to create an UnmarshalFieldError when a json value name matched an unexported field name. This error will no longer be created and the field will be skipped instead.

Fixes #4660.

R=adg, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/7139049
src/pkg/encoding/json/decode.go
src/pkg/encoding/json/decode_test.go