瀏覽代碼

Make sure we use the go-json NewEncoder and NewDecoder

Matt Bolt 4 年之前
父節點
當前提交
ef744be6d6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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