change pointer receiver that implements interface MarshalJSON to struct receiver for all packages

This commit is contained in:
John Guo
2022-01-19 16:55:57 +08:00
parent d7b94428ae
commit 3bbbe1db9c
37 changed files with 54 additions and 36 deletions

View File

@ -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()
}