Help with datatable data loading

Hi, Is there a way to access json object elements when declaring datatable columns?
my server is returning relationships in this way:

[
{
‘id’ : 1,
‘data’ : ‘1’,
‘extra’ : {
‘extra_id’ : 5
}
},…,{…}
]

so i want to access object properties for columns in my datatable
my datatable config:

webix.ui({
	view: 'datatable',
	columns: [{
		id: 'id',
		header: 'id',
	},{
		id: 'data',
		header: 'data',
	},{
		id: 'extra.extra_id', (i dont know how to access it)
		header: 'Extra',
	}],
	url: data.json
});

Hi,

In this case you need to define a template function for the datatable column. It will return the needed object property while ID of such column can be any.

http://webix.com/snippet/dd4cdbc6