I have no idea why I'm having so much trouble with this. This seems like it should be really simple.
I have a JavaScript string like the following:
var str = '[[1, 2, 3], [4, 5, 6], [7, 8, 9]]';
I actually want to convert this into an array of arrays. str.split(',')
doesn't work because it'll split on the commas in the inner arrays.
I'm sure this conversion is probably something stupidly simple, but I must be missing it. Any help would be appreciated.