소스 검색

fix #203 consider MarshalJSON as non empty

Tao Wen 8 년 전
부모
커밋
23078876c5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      feature_reflect_native.go

+ 2 - 2
feature_reflect_native.go

@@ -700,7 +700,7 @@ func (encoder *marshalerEncoder) EncodeInterface(val interface{}, stream *Stream
 }
 
 func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
-	return encoder.checkIsEmpty.IsEmpty(ptr)
+	return false
 }
 
 type textMarshalerEncoder struct {
@@ -726,7 +726,7 @@ func (encoder *textMarshalerEncoder) EncodeInterface(val interface{}, stream *St
 }
 
 func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
-	return encoder.checkIsEmpty.IsEmpty(ptr)
+	return false
 }
 
 type unmarshalerDecoder struct {