how to convert text to array with sub array in javascript code example
Example: convert matrix string to matrix javascript
string = '[[1, 2], [3, 4], [5, 6]]'
string = JSON.parse(string)
string = '[[1, 2], [3, 4], [5, 6]]'
string = JSON.parse(string)