See related post here.
PS:
without using eval you could do:
str = "[1, 2, 3]"
parse.(Int, split(filter(∉(['[',']']), str), ','))
See related post here.
PS:
without using eval you could do:
str = "[1, 2, 3]"
parse.(Int, split(filter(∉(['[',']']), str), ','))