@@ -101,7 +101,7 @@ func DeleteNullInJson(jsonBytes []byte) ([]byte, map[string]interface{}, error)
101101 return nil , nil , emperror .Wrap (err , "could not delete null values from patch map" )
102102 }
103103
104- o , err := json .Marshal (filteredMap )
104+ o , err := json .ConfigCompatibleWithStandardLibrary . Marshal (filteredMap )
105105 if err != nil {
106106 return nil , nil , emperror .Wrap (err , "could not marshal filtered patch map" )
107107 }
@@ -183,7 +183,7 @@ func deleteStatusField(obj []byte) ([]byte, error) {
183183 return []byte {}, emperror .Wrap (err , "could not unmarshal byte sequence" )
184184 }
185185 delete (objectMap , "status" )
186- obj , err = json .Marshal (objectMap )
186+ obj , err = json .ConfigCompatibleWithStandardLibrary . Marshal (objectMap )
187187 if err != nil {
188188 return []byte {}, emperror .Wrap (err , "could not marshal byte sequence" )
189189 }
@@ -206,7 +206,7 @@ func deleteVolumeClaimTemplateFields(obj []byte) ([]byte, error) {
206206 }
207207 }
208208
209- obj , err = json .Marshal (sts )
209+ obj , err = json .ConfigCompatibleWithStandardLibrary . Marshal (sts )
210210 if err != nil {
211211 return []byte {}, emperror .Wrap (err , "could not marshal byte sequence" )
212212 }
0 commit comments