Use standard library for JSON encoding

This commit is contained in:
2019-11-03 01:56:42 +09:00
parent 7f4534f03e
commit 9d97be7c15
6 changed files with 15 additions and 12 deletions

View File

@ -1,8 +1,9 @@
package arn
import (
"encoding/json"
"github.com/animenotifier/anilist"
jsoniter "github.com/json-iterator/go"
)
// AniListMatch ...
@ -13,7 +14,7 @@ type AniListMatch struct {
// JSON ...
func (match *AniListMatch) JSON() string {
b, err := jsoniter.Marshal(match)
b, err := json.Marshal(match)
PanicOnError(err)
return string(b)
}