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,10 +1,10 @@
package arn
import (
"encoding/json"
"net/http"
webpush "github.com/akyoto/webpush-go"
jsoniter "github.com/json-iterator/go"
)
// PushSubscription ...
@ -39,7 +39,7 @@ func (sub *PushSubscription) SendNotification(notification *PushNotification) (*
}
// Create notification
data, err := jsoniter.Marshal(notification)
data, err := json.Marshal(notification)
if err != nil {
return nil, err