Convert string array representation back to an array
Solution 1:
Just use JSON.parse('["item1", "item2", "item3"]');
Solution 2:
Try JSON.parse:
ary = JSON.parse(s);
Most browsers support it natively, for others you'll need json.js
Just use JSON.parse('["item1", "item2", "item3"]');
Try JSON.parse:
ary = JSON.parse(s);
Most browsers support it natively, for others you'll need json.js