I have a string with the given value:
var string = "[[1,2],[3,4],[5,6],[7,8]]";
I would like to know how can I convert this text to an array. Not only that but i would like also [1,2]
, [3,4]
etc. to be arrays as well. Does anyone know how I can accomplish that?