mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
change pointer receiver that implements interface MarshalJSON to struct receiver for all packages
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
package gjson
|
||||
|
||||
// MarshalJSON implements the interface MarshalJSON for json.Marshal.
|
||||
func (j *Json) MarshalJSON() ([]byte, error) {
|
||||
func (j Json) MarshalJSON() ([]byte, error) {
|
||||
return j.ToJson()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user