我们有以下 JSON 格式从 rest 服务返回的数据,我想对数据进行分组ActivityStartDate
,然后以格式显示。我可以遍历并创建分组,ActivityStartDate
但如果我们返回更多项目,这似乎不是有效的方法。
有没有更好的方法来实现它?
{
"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"
}
]
}