Change to json.Decoder and remove unused struct. Passes golint.