把以下數組拆分:
{
"errcode": 0,
"msg": "成功",
"data": {
"list": [
{
"ticket_no": "1",
"options": [
"周四301",
"周四302",
"周四303"
],
"play_type": "qweq",
"multiple": 2,
"period_num": "1",
"money": 4,
"lottery_type": "asdf",
"lottery_type_name": "阿斯蒂芬"
}
],
"merge": "8",
"original": "8",
"ticket_money": 32
},
"token": ""
}
就是如何拆分option后?并帶行原來的數據
最終拆分成的樣子是:
{
"errcode": 0,
"msg": "成功",
"data": {
"list": [
{
"ticket_no": "1",
"options": "周四301" ,
"play_type": "qweq",
"multiple": 2,
"period_num": "1",
"money": 4,
"lottery_type": "asdf",
"lottery_type_name": "阿斯蒂芬"
},? ?{
"ticket_no": "1",
"options": "周四302" ,
"play_type": "qweq",
"multiple": 123,
"period_num": "123",
"money": 123,
"lottery_type": "asdf",
"lottery_type_name": "阿斯蒂芬"
},? ?{
"ticket_no": "1",
"options":? "周四303",
"play_type": "qweq",
"multiple": 123,
"period_num": "123",
"money":123,
"lottery_type": "asdf",
"lottery_type_name": "阿斯蒂芬"
}
],
"merge": "123",
"original": "123",
"ticket_money": 123
},
"token": ""
}