]> Cypherpunks repositories - gostls13.git/commit
encoding/json: explicitly document and test "-" key tag
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 28 Mar 2016 21:15:01 +0000 (17:15 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Oct 2016 14:42:16 +0000 (14:42 +0000)
commit20c48c9557e8d33e19a7e770d4f045ed548f26a2
tree44a6d1257b2934f46a8d9f70ecd2a5abebf96f32
parent91706c04b93e9f14321a038943829e99dc333794
encoding/json: explicitly document and test "-" key tag

Struct fields can be suppressed in JSON serialization by "-" tags, but
that doesn't preclude generation of "-" object keys.
Document and verify the mechanism for doing so.

Change-Id: I7f60e1759cfee15cb7b2447cd35fab91c5b004e6
Reviewed-on: https://go-review.googlesource.com/21204
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/json/encode.go
src/encoding/json/tagkey_test.go