]> Cypherpunks repositories - gostls13.git/commit
encoding/json: disable anonymous fields
authorRuss Cox <rsc@golang.org>
Sun, 19 Feb 2012 05:27:05 +0000 (00:27 -0500)
committerRuss Cox <rsc@golang.org>
Sun, 19 Feb 2012 05:27:05 +0000 (00:27 -0500)
commit990f9f4c007cb8b74fafd5c3d4800de86a7f2295
tree2546bdbbbf5db1c3de7d21ca0de4d845daf9a8f0
parent89b075cc90f260edaa4973bd25258ee653a37a2f
encoding/json: disable anonymous fields

We should, after Go 1, make them work the same as
package xml, that is, make them appear in the outer
struct.  For now turn them off so that people do not
depend on the old behavior.

Fixing them is issue 3069.

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