updating github.com/json-iterator/go to v1.1.6

This commit is contained in:
Davanum Srinivas
2019-06-14 11:04:03 -04:00
parent db35f59e27
commit c6b2b45fa9
36 changed files with 148 additions and 109 deletions

View File

@@ -93,8 +93,7 @@ func (encoder *marshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteNil()
return
}
marshaler := obj.(json.Marshaler)
bytes, err := marshaler.MarshalJSON()
bytes, err := json.Marshal(obj)
if err != nil {
stream.Error = err
} else {