bump github.com/json-iterator/go v1.1.8

This commit is contained in:
Jordan Liggitt
2019-10-12 10:10:03 -04:00
parent 353113607d
commit e323279ab9
37 changed files with 191 additions and 57 deletions

View File

@@ -249,6 +249,10 @@ type mapEncoder struct {
}
func (encoder *mapEncoder) Encode(ptr unsafe.Pointer, stream *Stream) {
if *(*unsafe.Pointer)(ptr) == nil {
stream.WriteNil()
return
}
stream.WriteObjectStart()
iter := encoder.mapType.UnsafeIterate(ptr)
for i := 0; iter.HasNext(); i++ {