Given a string of the format
"(1,(2,3,4),(5,6,(7,8,9,a,(b,c,d))))"
What is the easiest way of converting this into a JavaScript array?
[1, [2, 3, 4], [5, 6, [7, 8, 9, 'a', ['b', 'c', 'd']]]]
The use of both integers and unqutoed strings prevents me from using inbuilt parsing, and the multidimensionality prevents me from using simple splits, or similar.
(,)and,are made into the form&40;,&41;and&44;. I do have access to the serialiser however, so I can add other characters to be reserved, e.g.".