Let\'s say I had the string
\"[1,2,[3,4,[5,6]],7]\"
How would I parse that into the array
[1,2,[3,4,[5,6]],7]
Use eval
array = eval("[1,2,[3,4,[5,6]],7]")