Skip to content

Commit 2307887

Browse files
committed
fix #203 consider MarshalJSON as non empty
1 parent 051434f commit 2307887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feature_reflect_native.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ func (encoder *marshalerEncoder) EncodeInterface(val interface{}, stream *Stream
700700
}
701701

702702
func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
703-
return encoder.checkIsEmpty.IsEmpty(ptr)
703+
return false
704704
}
705705

706706
type textMarshalerEncoder struct {
@@ -726,7 +726,7 @@ func (encoder *textMarshalerEncoder) EncodeInterface(val interface{}, stream *St
726726
}
727727

728728
func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
729-
return encoder.checkIsEmpty.IsEmpty(ptr)
729+
return false
730730
}
731731

732732
type unmarshalerDecoder struct {

0 commit comments

Comments
 (0)