can you re-write this so that it returns on the error case:

```go
m, err := j.Map()
if err != nil {
    return
}
m[key] = val
```

also, since maps are reference types in go you do not need the line `j.data = m`