mirror of https://github.com/docker/docs.git
Remove the json alterations when decoding
This commit is contained in:
parent
966cddf26b
commit
dc2d930520
|
@ -21,8 +21,6 @@ func NewImgJson(src []byte) (*Image, error) {
|
||||||
|
|
||||||
Debugf("Json string: {%s}\n", src)
|
Debugf("Json string: {%s}\n", src)
|
||||||
// FIXME: Is there a cleaner way to "puryfy" the input json?
|
// 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 {
|
if err := json.Unmarshal(src, ret); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue