diff --git a/encoding/json/json.go b/encoding/json/json.go index d0e8371..6cf407c 100644 --- a/encoding/json/json.go +++ b/encoding/json/json.go @@ -42,7 +42,7 @@ func SetValueWithJSONStringArray(raw []byte, targets []interface{}) error { return fmt.Errorf("Type conversion of value[%s] has been failed to %s[%d]", value, reflect.TypeOf(target).Elem().Kind(), indexI) } - target = cv + reflect.ValueOf(target).Elem().Set(reflect.ValueOf(cv)) } }