mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
fix marshaling json
This commit is contained in:
@@ -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('{')
|
||||
|
||||
|
Reference in New Issue
Block a user