I have a list of wrapper class list tempList
public class employeeBookedClass{
public string locationName;
public string locationDate;
public string trainerName;
public string uniqueId;
public employeeBookedClass(string locationName, string locationDate,
string trainerName){
this.locationName = locationName;
this.locationDate = locationDate;
this.trainerName = trainerName;
this.uniqueId = locationDate + '~' + locationName;
}
}
Now I want to loop over the list in javascript.
for(var ids in listEmplyee){
console.log(ids + '>>>' + listEmplyee[ids]);
}
This is what I get in javascript and want to loop over that.
[employeeBookedClass:[locationDate=19/02/2018, locationName=London, trainerName=Nayank, uniqueId=19/02/2018~London], employeeBookedClass:[locationDate=12/03/2018, locationName=Rajasthan, trainerName=Chris, uniqueId=12/03/2018~Rajasthan]]