把以下数组拆分:
{
"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": ""
}
pardon110