Javascript Convert String to Object(list/array)

Problem 1: Can this be achieved in javascript?

value = "['iPhone', 'iBall']" 

to

value = ['iPhone', 'iBall']

Problem 2:
To make it harder, The values are encoded:

value = "['iPhone', 'iball']"

30 thoughts on “Javascript Convert String to Object(list/array)”

Leave a Comment