How do i get a string to array?
Strings.xml:
<string id="test">1,2,3,4,5</string>
Document.mc:
var test = Ui.loadResource(Rez.Strings.test);
var array = "["+test+"]";
It returns as a string ("[1,2,3,4,5]"), but I have read that I can use JSON.parse, like
var array = JSON.parse("[" + string + "]");
But it dont work, and is there a way to get it to work? :D