I am working on angular gantt chart and have some problem getting data from json to gantt data as they are in diffrent format
my json code is { "customers" : [ { "name" : "Doremon", "Tdate" : "2014-02-15T00:00:00", "Country" : "USA", "gender" : "M", "age" : 32, "tyear" : 2014, "ContactString" : 2 }, { "name" : "Dora", "Tdate" : "2014-02-05T00:00:00", "Country" : "FRA", "gender" : "F", "age" : 26, "tyear" : 2014, "ContactString" : 2 }, { "name" : "Popeye", "Tdate" : "2014-05-11T00:00:00", "Country" : "IND", "gender" : "M", "age" : 32, "tyear" : 2014, "ContactString" : 5 }, { "name" : "Minnie", "Tdate" : "2014-06-27T00:00:00", "Country" : "UK", "gender" : "F", "age" : 25, "tyear" : 2014, "ContactString" : 6 }, { "name" : "July", "Tdate" : "2014-09-16T00:00:00", "Country" : "PR", "gender" : "F", "age" : 25, "tyear" : 2014, "ContactString" : 9 } ] } and this should be converted into gantt chart data formatlike this example
{name: 'Status meetings', tasks: [ {name: 'Demo #1', color: '#9FC5F8', from: new Date(2013, 9, 25, 15, 0, 0), to: new Date(2013, 9, 25, 18, 30, 0)}, {name: 'Demo #2', color: '#9FC5F8', from: new Date(2013, 10, 1, 15, 0, 0), to: new Date(2013, 10, 1, 18, 0, 0)}, {name: 'Demo #3', color: '#9FC5F8', from: new Date(2013, 10, 8, 15, 0, 0), to: new Date(2013, 10, 8, 18, 0, 0)}, {name: 'Demo #4', color: '#9FC5F8', from: new Date(2013, 10, 15, 15, 0, 0), to: new Date(2013, 10, 15, 18, 0, 0)}, {name: 'Demo #5', color: '#9FC5F8', from: new Date(2013, 10, 24, 9, 0, 0), to: new Date(2013, 10, 24, 10, 0, 0)} ]},
so please if someone could tell some software or some technique for this conversion it would be very helpful