I have a nested array stored as a string in my database. After fetching it, it is returned as a string. I need to convert it back to a nested array. JSON.parse does not work for this, unfortunately, I get this error:
VM5481:1 Uncaught SyntaxError: Unexpected token ' in JSON at position 2
Essentially, I need to convert this:
"[['E4', '4n.'], ['D4', '8n'], ['C4', '4n'], ['D4', '4n']]"
to this:
[['E4', '4n.'], ['D4', '8n'], ['C4', '4n'], ['D4', '4n']]
using JavaScript.