Browse Source

Make sure we use the go-json NewEncoder and NewDecoder

Matt Bolt 4 years ago
parent
commit
ef744be6d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/util/json/json.go

+ 2 - 2
pkg/util/json/json.go

@@ -8,8 +8,8 @@ import (
 
 var Marshal = gojson.Marshal
 var Unmarshal = gojson.Unmarshal
-var NewEncoder = json.NewEncoder
-var NewDecoder = json.NewDecoder
+var NewEncoder = gojson.NewEncoder
+var NewDecoder = gojson.NewDecoder
 
 type Marshaler = json.Marshaler
 type Unmarshaler = json.Unmarshaler