From: Augusto Roman Date: Sat, 28 May 2016 23:59:28 +0000 (-0700) Subject: doc: correct release notes for non-string map keys in encoding/json X-Git-Tag: go1.7beta1~40 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4e01c132d03ee1f862ae8ba9db465d6047f950f2;p=gostls13.git doc: correct release notes for non-string map keys in encoding/json The original draft mentioned support for json.Marshaler, but that's not the case. JSON supports only string keys (not arbitrary JSON) so only encoding.TextMarshaller is supported. Change-Id: I7788fc23ac357da88e92aa0ca17b513260840cee Reviewed-on: https://go-review.googlesource.com/23529 Reviewed-by: Andrew Gerrand --- diff --git a/doc/go1.7.html b/doc/go1.7.html index 2005ef422a..129d88c73c 100644 --- a/doc/go1.7.html +++ b/doc/go1.7.html @@ -33,7 +33,7 @@ Go 1.7 has NOT yet been released. By our regular schedule, it is expected some time in August 2016.

- +

Introduction to Go 1.7

@@ -664,23 +664,15 @@ maps using keys with string types. Go 1.7 adds support for maps using keys with integer types: the encoding uses a quoted decimal representation as the JSON key. Go 1.7 also adds support for encoding maps using non-string keys that implement -MarshalJSON -(see -Marshaler) -or -MarshalText +the MarshalText (see encoding.TextMarshaler) -methods, +method, as well as support for decoding maps using non-string keys that implement -UnmarshalJSON -(see -Unmarshaler) -or -UnmarshalText +the UnmarshalText (see encoding.TextUnmarshaler) -methods. +method. These methods are ignored for keys with string types in order to preserve the encoding and decoding used in earlier versions of Go.