mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +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) {
|
func (d *BsonD) MarshalJSON() ([]byte, error) {
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
if d.D == nil {
|
|
||||||
b.WriteString("null")
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
b.WriteByte('{')
|
b.WriteByte('{')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user