How to transfer list of list between js and jsx in Indesign panel?
How to transfer list of lists between js and jsx in Indesign panel?
JS side:
var listOfList = [
[1,2,3],
[2, "2", "hello"]
];
ata = JSON.stringify( listOfList )
var script = 'listTransfer( ' + ata + ');'
csInterface.evalScript(script);
JSX side:
#include "json_p.js"
function listTransfer(inpuList){
var listOfLists = JSON.parse(inpuList)
return listOfLists
}
And this above does not work.
The real list of list I need to transfer is read from excel file (content of each cell is element in list which is part of a bigger list).
Maybe I could try to export as csv from js and then import from jsx.
But any suggestion how to improve this or some other approch?
