I have a list detected as a string like this one:
var list = "['one', 'two', 'three']"
Is there a way to turn this into an array:
var real_list = ['one', 'two', 'three']
Edit:
But I can’t change the quotation marks of var list.
I have a list detected as a string like this one:
var list = "['one', 'two', 'three']"
Is there a way to turn this into an array:
var real_list = ['one', 'two', 'three']
Edit:
But I can’t change the quotation marks of var list.