Skip to content

Commit

Permalink
[FIX] kvlist deserializer shouldn't go through json
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoric committed Dec 3, 2024
1 parent 8b61b15 commit c755858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deserialize/deserialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ type kvReflectDeserializer struct {
}

func (kvrd kvReflectDeserializer) DeserializeKVListTo(value kvlist.KVList, reflectOut *reflect.Value) error {
normalized := make(jsonPkg.JSON)
normalized := make(map[string]any)
err := deListMapReflect(kvrd.typ, normalized, value, kvrd.options)
if err != nil {
return err
}

err = kvrd.reflectDeserializer(reflectOut, normalized.AsValue())
err = kvrd.reflectDeserializer(reflectOut, kvlist.MakeRootDict(normalized).AsValue())
if err != nil {
return err
}
Expand Down

0 comments on commit c755858

Please sign in to comment.