Forum Moderators: open
If I have a string that looks like e.g.
[['line1',line2'],['line3','line4']]
How can I turn this into a JSON array? The split() method doesn't work...
var arrvar str="[['line 1','line 2],['line 1','line 2']]";eval("arr="+str);alert(arr[0][0]);