【发布时间】:2018-02-26 06:25:09
【问题描述】:
我收到这样的回复
{
"ResponseStatus":"True",
"ResponseCode":"0",
"ResponseMessage":"Calendar Details Received!!",
"data":[
{
"title":"Holiday",
"titlePopup":"Holiday",
"color":"#e1e5ec",
"msgId":0,
"start":"2018-01-03T00:00:00",
"end":"2018-01-03T23:00:00",
"allDay":0,
"attachment":"",
"genFile":"",
"is_Holiday":1
},
{
"title":"Holiday",
"titlePopup":"Holiday",
"color":"#e1e5ec",
"msgId":0,
"start":"2018-01-04T00:00:00",
"end":"2018-01-04T23:00:00",
"allDay":0,
"attachment":"",
"genFile":"",
"is_Holiday":1
},
{
"title":"Holiday",
"titlePopup":"Holiday",
"color":"#e1e5ec",
"msgId":0,
"start":"2018-02-03T00:00:00",
"end":"2018-02-03T23:00:00",
"allDay":0,
"attachment":"",
"genFile":"",
"is_Holiday":1
},
{
"title":"Holiday",
"titlePopup":"Holiday",
"color":"#e1e5ec",
"msgId":0,
"start":"2018-02-04T00:00:00",
"end":"2018-02-04T23:00:00",
"allDay":0,
"attachment":"",
"genFile":"",
"is_Holiday":1
}
]
}
需要得到响应为
{
"ResponseStatus": "True",
"ResponseCode": "0",
"ResponseMessage": "Calendar Details Received!!",
"data":
{
"Jan": [
{
"title": "Holiday",
"titlePopup": "Holiday",
"color": "#e1e5ec",
"msgId": 0,
"start": "2018-01-03T00:00:00",
"end": "2018-01-03T23:00:00",
"allDay": 0,
"attachment": "",
"genFile": "",
"is_Holiday": 1
},
{
"title": "Holiday",
"titlePopup": "Holiday",
"color": "#e1e5ec",
"msgId": 0,
"start": "2018-01-04T00:00:00",
"end": "2018-01-04T23:00:00",
"allDay": 0,
"attachment": "",
"genFile": "",
"is_Holiday": 1
}
],
"Feb": [
{
"title": "Holiday",
"titlePopup": "Holiday",
"color": "#e1e5ec",
"msgId": 0,
"start": "2018-02-03T00:00:00",
"end": "2018-02-03T23:00:00",
"allDay": 0,
"attachment": "",
"genFile": "",
"is_Holiday": 1
},
{
"title": "Holiday",
"titlePopup": "Holiday",
"color": "#e1e5ec",
"msgId": 0,
"start": "2018-02-04T00:00:00",
"end": "2018-02-04T23:00:00",
"allDay": 0,
"attachment": "",
"genFile": "",
"is_Holiday": 1
}
]
}
}
【问题讨论】:
标签: c# asp.net-web-api2