Use standard library for JSON encoding
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user