we have data returned from rest service in below JSON format and I want to group data by ActivityStartDate
and then show in format. I can iterate through and create group by ActivityStartDate
but this seems not efficient method in case we have more items returned.
Is there any better way to achieve it?
{
"results": [
{
"Id": 1,
"Title": "Food Promotion - 1",
"ActivityStartDate": "2015-12-12T08:00:00Z",
"ActivityEndDate": "2016-01-12T08:00:00Z",
"ActivityDescription": "Two for one if dream and do not dream of fack promotions",
"ShowInHistory": true,
"ShowUpdated": true,
"Modified": "2015-12-14T21:28:37Z",
"Created": "2015-12-14T21:28:37Z"
}
]
}