fixed code to json.Unmarshal