You Can Define The Data Root
< div class="myjtline" > </ div >
$('.myjtline').jTLine({
callType: 'jsonObject',
structureObj: myMappedObjectB,
map: {
"dataRoot": "parent.ch2",
"title": "taskTitle",
"subTitle": "taskSubTitle",
"dateValue": "assignDate",
"pointCnt": "taskShortDate",
"bodyCnt": "taskDetails"
}
});
// dataRoot : 'parent.ch2'
var myMappedObjectB = {
attrA: "",
atrrB: "",
"parent": {
"ch1": {},
"ch2": [{
"isSelected": "",
"taskTitle": "My Point 7",
"taskSubTitle": "September 15th, 2014",
"assignDate": "15/09/2014",
"taskShortDate": "15 Sep",
"taskDetails": contentText
},
{
"isSelected": "",
"taskTitle": "My Point 10",
"taskSubTitle": "January 19th, 2015",
"assignDate": "19/01/2015",
"taskShortDate": "29 Jan",
"taskDetails": contentText
}]
}
};