完整示例代码分享:
{
"reason": "Success",
"result": {
"data": {
"year": "2018",
"year-month": "2018-8",
"holiday": "[{\"name\":\"中秋节\",\"festival\":\"2018-9-24\",\"desc\":\"9月24日放假,与周末连休。\",\"rest\":\"拼假建议:2018年9月25日(周二)~2018年9月30日(周日)请假6天,与国庆节衔接,拼16天小长假\",\"list\":[{\"date\":\"2018-9-22\",\"status\":\"1\"},{\"date\":\"2018-9-23\",\"status\":\"1\"},{\"date\":\"2018-9-24\",\"status\":\"1\"}],\"list#num#\":3}]",
"holiday_array": [
{
"name": "中秋节",
"festival": "2018-9-24",
"desc": "9月24日放假,与周末连休。",
"rest": "拼假建议:2018年9月25日(周二)~2018年9月30日(周日)请假6天,与国庆节衔接,拼16天小长假",
"list": [
{
"date": "2018-9-22",
"status": "1"
},
{
"date": "2018-9-23",
"status": "1"
},
{
"date": "2018-9-24",
"status": "1"
}
],
"list#num#": 3,
"list_num": 3
}
]
}
},
"error_code": 0
}