]> Cypherpunks repositories - gostls13.git/commit
encoding/json: encode map key is of string kind, decode only of string type
authorRyan Slade <ryanslade@gmail.com>
Sun, 30 Dec 2012 04:40:42 +0000 (15:40 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 30 Dec 2012 04:40:42 +0000 (15:40 +1100)
commita4600126d9e4fcbd8e9ea3072eff7ea5822f2014
tree6fa155a0ac83b5746bcaad950cbbe1dcbba170ca
parenta22389ec38dd57df86236feee47404c5b01ce191
encoding/json: encode map key is of string kind, decode only of string type

Allows encoding and decoding of maps with key of string kind, not just string type.
Fixes #3519.

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