From 4a933341a532f7d5bf05bea24de238734e033dfb Mon Sep 17 00:00:00 2001 From: Jason Moiron Date: Wed, 15 Jun 2016 01:34:58 -0400 Subject: [PATCH] closes #217 --- types/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/types.go b/types/types.go index 53848bc0..ebe46c0d 100644 --- a/types/types.go +++ b/types/types.go @@ -54,9 +54,9 @@ func (g *GzippedText) Scan(src interface{}) error { // implements `Unmarshal`, which unmarshals the json within to an interface{} type JSONText json.RawMessage -// MarshalJSON returns the *j as the JSON encoding of j. -func (j *JSONText) MarshalJSON() ([]byte, error) { - return *j, nil +// MarshalJSON returns j as the JSON encoding of j. +func (j JSONText) MarshalJSON() ([]byte, error) { + return j, nil } // UnmarshalJSON sets *j to a copy of data