Skip to content
Permalink
Browse files
unpack map value to raw value
  • Loading branch information
wongoo committed Dec 29, 2021
1 parent ac3b4ed commit a36dcbfe909f8bbe28b8701f1265134db4a7fea3
Showing 1 changed file with 2 additions and 2 deletions.
4 map.go
@@ -206,8 +206,8 @@ func (d *Decoder) decMapByValue(value reflect.Value) error {
if err != nil {
return perrors.WithStack(err)
}
// TODO map value may be a ref object
m.Elem().SetMapIndex(EnsurePackValue(entryKey), EnsurePackValue(entryValue))

m.Elem().SetMapIndex(EnsurePackValue(entryKey), EnsureRawValue(entryValue))
}

SetValue(value, m)

0 comments on commit a36dcbf

Please sign in to comment.