diff --git a/util/data/data.go b/util/data/data.go index 32656ceb..80ee7ac1 100644 --- a/util/data/data.go +++ b/util/data/data.go @@ -50,11 +50,6 @@ func (d *Doc) Copy() (i interface{}) { return deep.Copy(d.data) } -// JSON converts the data object to a JSON byte slice. -func (d *Doc) JSON() (data []byte) { - return pack.ToJSON(d.data) -} - // Encode encodes the data object to a byte slice. func (d *Doc) Encode() (dst []byte) { dst = pack.Encode(&d.data) diff --git a/util/data/data_test.go b/util/data/data_test.go index f66d451d..70075ee0 100644 --- a/util/data/data_test.go +++ b/util/data/data_test.go @@ -31,7 +31,6 @@ func TestConversion(t *testing.T) { enc := doc.Encode() dec := doc.Decode(enc) So(doc, ShouldResemble, dec) - So(doc.JSON(), ShouldResemble, dec.JSON()) }) }