Note that echo is not a really good command to see the type of variables:
import typetraits
var str_seq = @["10", "30", "40", "50", "80"]
echo str_seq
echo str_seq.type
var str_seq2 = """@["10", "30", "40", "50", "80"]"""
echo str_seq2
echo str_seq2.type
Run
stefan@nuc /tmp/h $ ./t
@["10", "30", "40", "50", "80"]
seq[string]
@["10", "30", "40", "50", "80"]
string
Run
So echo output looks the same for a seq and a string. typetraits.type shows you
the real type of your vars. Generally, when in doubt, it may be better to
explicitely write down types in var declarations, and use type inference only
when one is absolutely sure about data types. I have never used parseJson(), so
I do not really understand your example code, but I think that your vars are
plain strings, and you iterate over that strings, so output is the chars of
that strings.