diff --git a/array.go b/array.go index 6127d94..5dc3443 100644 --- a/array.go +++ b/array.go @@ -149,9 +149,9 @@ func (at *Array[Bt]) ToStringWithSplit(split string) StringResult { // Author : go_developer@163.com<白茶清欢> // // Date : 19:00 2024/10/13 -func (at *Array[Bt]) ExtraField(fieldName string) *Array[any] { +func (at *Array[Bt]) ExtraField(fieldName string) String { if at.IsNil() { - return ArrayType[any]([]any{}) + return String("[]") } byteData, _ := json.Marshal(at.value) res := make([]any, 0) @@ -162,5 +162,5 @@ func (at *Array[Bt]) ExtraField(fieldName string) *Array[any] { res = append(res, itemValue.Value()) } } - return ArrayType(res) + return String(ArrayType(res).ToString().Value) }