JSFiddle - React, Tailwind, and code Playground

by wirey00

JavaScript

var data = {
    "class": "go.GraphLinksModel",
        "nodeDataArray": [{
        "key": "CTR:2",
            "type": "Controller",
            "devicename": "ACU-1K",
            "deviceid": "2",
            "imageUrl": "http://localhost:52233/Images/ComputerSpeaker_32.png",
            "loc": "280 112"
    }, {
        "key": "CTR:1",
            "type": "Controller",
            "devicename": "C302-1",
            "deviceid": "1",
            "imageUrl": "http://localhost:52233/Images/ComputerSpeaker_32.png",
            "loc": "477 92"
    }, {
        "key": "RDR:25",
            "type": "Reader",
            "devicename": "1K-1-RDR01",
            "deviceid": "25",
            "imageUrl": "http://localhost:52233/Images/Plugin_32.png",
            "loc": "592 41"
    }],
        "linkDataArray": []
};

$.each(data.nodeDataArray, function (key, nodeDataArray) {

    console.log(nodeDataArray);
    nodeDataArray.imageUrl = "default";
});

});