Skip to content

Commit

Permalink
closes jmoiron#217
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Jun 15, 2016
1 parent 06a5a6a commit 4a93334
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a93334

Please sign in to comment.