We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06a5a6a commit 4a93334Copy full SHA for 4a93334
types/types.go
@@ -54,9 +54,9 @@ func (g *GzippedText) Scan(src interface{}) error {
54
// implements `Unmarshal`, which unmarshals the json within to an interface{}
55
type JSONText json.RawMessage
56
57
-// MarshalJSON returns the *j as the JSON encoding of j.
58
-func (j *JSONText) MarshalJSON() ([]byte, error) {
59
- return *j, nil
+// MarshalJSON returns j as the JSON encoding of j.
+func (j JSONText) MarshalJSON() ([]byte, error) {
+ return j, nil
60
}
61
62
// UnmarshalJSON sets *j to a copy of data
0 commit comments