I have a string representation of an array:
\'[\"item1\", \"item2\", \"item3\"]\'
I\'m trying to convert this back to an array.
Any
Try JSON.parse:
ary = JSON.parse(s);
Most browsers support it natively, for others you'll need json.js