diff --git a/array.go b/array.go index 5dc3443..2793340 100644 --- a/array.go +++ b/array.go @@ -55,8 +55,8 @@ func (at *Array[Bt]) IsNil() bool { func (at *Array[Bt]) ToStringSlice() []string { list := make([]string, 0) for _, item := range at.value { - byteData, _ := json.Marshal(item) - list = append(list, strings.Trim(string(byteData), "\"")) + str := AnyDataType(item).ToString().Value() + list = append(list, str) } return list }