Issue For node Data Binding with Node Template

How Can I bind below Color property from node data Array with node template.

“nodeData”: [
{
“key”: “G1”,
“text”: “IAF\src\gov\otda\iaf\config”,
“category”: “PACKAGE”,
“isGroup”: true,
“group”: “”,
“isButtonvisible”: true,
“NodeDetails”: [
{
“color”: “#3366FF”,
“BorderStyle”: “dashed”,
“Shape”: “roundrectangle”
}
]
},
{
“key”: “FILEID-1”,
“text”: “ConfigPropertiesBean [ConfigPropertiesBean]”,
“category”: “PROGRAM”,
“isGroup”: false,
“group”: “G1”,
“isButtonvisible”: true,
“NodeDetails”: [
{
“color”: “#FFCC00”,
“BorderStyle”: “line”,
“Shape”: “roundrectangle”
}
]
},

below Binding property not work:
new go.Binding(“fill”,“color”),

new go.Binding("fill", "NodeDetails", nd => nd.color)

See also: Binding data sub-properties, and replace “details” with “NodeDetails”.

HI
I have Another issue related to Binding data sub-properties.

How can I bind isHighlighted property on link selection and data sub-properties together for Fill property on link Template?

Like :
Note :I tried but not work,
new go.Binding(“fill”, “EdgeDetails”,“isSelected”, s => s ? “dodgerblue”: ed=>ed.color).ofObject(),

new go.Binding("fill", "isSelected",
      (sel, shp) => sel ? "dodgerblue" : shp.part.data.EdgeDetails.color).ofObject(),