diff --git a/om/conv.go b/om/conv.go index 0fbbb7c7..52aa4e52 100644 --- a/om/conv.go +++ b/om/conv.go @@ -68,7 +68,7 @@ func (r hashConv) FromHash(fields map[string]string) error { continue } if f.conv.StringToValue == nil { - if err := json.Unmarshal(unsafe.Slice(unsafe.StringData(v), len(v)), r.entity.Field(f.idx).Addr().Interface()); err != nil { + if err := json.Unmarshal([]byte(v), r.entity.Field(f.idx).Addr().Interface()); err != nil { return err } } else {