mirror of
https://github.com/json-iterator/go.git
synced 2025-01-23 18:54:21 +02:00
fix #203 consider MarshalJSON as non empty
This commit is contained in:
parent
051434fab7
commit
23078876c5
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user