I'm trying to convert a formatted string to a JavaScript multidimensional array.
I've tried split() and push() functions but neither seem to work. The format should be already right but I can't seem to figure out how to make the string into an array.
Here's the string:
[[24297, 'CWCS Sump 002', -121.50842, 38.54798, '2', 'SEWER SUMP'],[8035, 'CWCS Sump 002A (56)', -121.50842, 38.54798, '2A', 'SEWER SUMP'],[9334, 'CWCS Sump 001', -121.5110297, 38.5703431, '1', 'SEWER SUMP']]
I just want a JavaScript array that is 3x6 (if I counted that right) from that string. The number of rows will vary.