Skip to content

Commit 4a93334

Browse files
committed
closes jmoiron#217
1 parent 06a5a6a commit 4a93334

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ func (g *GzippedText) Scan(src interface{}) error {
5454
// implements `Unmarshal`, which unmarshals the json within to an interface{}
5555
type JSONText json.RawMessage
5656

57-
// MarshalJSON returns the *j as the JSON encoding of j.
58-
func (j *JSONText) MarshalJSON() ([]byte, error) {
59-
return *j, nil
57+
// MarshalJSON returns j as the JSON encoding of j.
58+
func (j JSONText) MarshalJSON() ([]byte, error) {
59+
return j, nil
6060
}
6161

6262
// UnmarshalJSON sets *j to a copy of data

0 commit comments

Comments
 (0)