You can Mapp the Data Object Properties
< div class="myjtline" > </ div >
$('.myjtline').jTLine({
callType: 'jsonObject',
structureObj: myMappedObject,
map: {
"dataRoot": "/",
"title": "taskTitle",
"subTitle": "taskSubTitle",
"dateValue": "assignDate",
"pointCnt": "taskShortDate",
"bodyCnt": "taskDetails"
}
});
// dataRoot : '/'
var myMappedObject = [
{
"isSelected": "",
"taskTitle": "My Point 2",
"taskSubTitle": "February 28th, 2014",
"assignDate": "28/02/2014",
"taskShortDate": "28 Feb",
"taskDetails": contentText
},
{
"isSelected": "",
"taskTitle": "My Point 3",
"taskSubTitle": "March 20th, 2014",
"assignDate": "20/04/2014",
"taskShortDate": "20 Apr",
"taskDetails": contentText
}];