diff --git a/operator-dot.go b/operator-dot.go index c4417ab..a13114f 100644 --- a/operator-dot.go +++ b/operator-dot.go @@ -57,7 +57,7 @@ func evalDot(ctx ExprContext, self *term) (v any, err error) { case string: var index int if index, err = verifyIndex(ctx, indexTerm, len(unboxedValue)); err == nil { - v = unboxedValue[index] + v = string(unboxedValue[index]) } case map[any]any: var ok bool