1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

fix map[string]interface{} in struct

This commit is contained in:
Tao Wen
2017-02-03 18:44:54 +08:00
parent 1e91dbbf58
commit 6880076b44
6 changed files with 42 additions and 3 deletions

View File

@ -226,7 +226,7 @@ func (codec *interfaceCodec) encode(ptr unsafe.Pointer, stream *Stream) {
}
func (encoder *interfaceCodec) encodeInterface(val interface{}, stream *Stream) {
WriteToStream(val, stream, encoder)
stream.WriteVal(val)
}
type anyCodec struct {