diff --git a/client/json.go b/client/json.go index b9125229c8..c5b0534774 100644 --- a/client/json.go +++ b/client/json.go @@ -363,9 +363,9 @@ func NewJSON(v any) (JSON, error) { return nil, NewErrInvalidJSONPayload(v) } -func newJSONBoolArray(v any) JSON { +func newJSONBoolArray(v []bool) JSON { arr := make([]JSON, 0) - for _, item := range v.([]bool) { + for _, item := range v { arr = append(arr, newJSONBool(item)) } return newJSONArray(arr)