fix marshaling json

This commit is contained in:
Kamil Dziedzic
2017-08-21 19:10:59 +02:00
parent 6d571cd708
commit 96691df8dd

View File

@@ -76,10 +76,6 @@ func (d *BsonD) UnmarshalJSON(data []byte) error {
func (d *BsonD) MarshalJSON() ([]byte, error) {
var b bytes.Buffer
if d.D == nil {
b.WriteString("null")
return nil, nil
}
b.WriteByte('{')