Here's a string I'm working with:
var my_str="[(0,10),(1,15),(2,48),(3,63),(4,25),(5,95),(6,41),(7,31),(8,5),(15,2)]";
I want to convert this string into an array of lists. For example,
alert(my_str[1])
would output 1,15.
I've attempted the following approach:
var myarray = JSON.parse(my_str);
However, it results in the error "unexpected token ( in JSON at position 1."