Remove the json alterations when decoding

Upstream-commit: dc2d930520cd528129330098e868c7fffe8349b9
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-03-22 14:27:10 -07:00
parent c21329b657
commit e548f7cc97

View File

@ -21,8 +21,6 @@ func NewImgJson(src []byte) (*Image, error) {
Debugf("Json string: {%s}\n", src)
// FIXME: Is there a cleaner way to "puryfy" the input json?
src = []byte(strings.Replace(string(src), "null", "\"\"", -1))
if err := json.Unmarshal(src, ret); err != nil {
return nil, err
}