Browse Source

Revert back to using the encoding/json pkg for NewEncoder and NewDecoder. These weren't exactly compatible

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

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

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