From 4d6eb122b00e291c5952c143c13b7d9cf4c6de15 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 9 Oct 2024 10:50:04 +0200 Subject: [PATCH] Use stdlib json encoder/decoder, goccy is too buggy --- encoding/json/json.go | 3 +-- go.mod | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/encoding/json/json.go b/encoding/json/json.go index 12046c06..51d0f0e8 100644 --- a/encoding/json/json.go +++ b/encoding/json/json.go @@ -2,10 +2,9 @@ package json import ( + "encoding/json" "fmt" "io" - - "github.com/goccy/go-json" ) type UnmarshalTypeError = json.UnmarshalTypeError diff --git a/go.mod b/go.mod index c9b6f090..f1d41509 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( github.com/fujiwara/shapeio v1.0.0 github.com/go-playground/validator/v10 v10.22.0 github.com/gobwas/glob v0.2.3 - github.com/goccy/go-json v0.10.3 github.com/golang-jwt/jwt/v4 v4.5.0 github.com/golang-jwt/jwt/v5 v5.2.1 github.com/google/gops v0.3.28 @@ -75,6 +74,7 @@ require ( github.com/go-openapi/swag v0.23.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect + github.com/goccy/go-json v0.10.3 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/gorilla/websocket v1.5.3 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect