An array outside node data array inside JSON

"variables": [
    {
        "txt": "Vars",
        "fig": "Rectangle",
        "src": "images/vars.png",        
        "comments": "",
    }
],

"nodeDataArray": [
    {
        "txt": "Start",
        "fig": "circle",
        "src": "images/start.png",
    }
],

How to do this?

Are you saying that your model has two Arrays of node data? You’ll need to combine them in the Model.nodeDataArray. If they really are different kinds of node data and also different kinds of nodes, then it might make sense to use different templates too. Read about template maps in the Introduction.

When saving the diagram’s model, you’ll need to split the single Model.nodeDataArray into two Arrays again, probably based on the data categories that you assigned when you merged the two arrays.