\{"cuid":117,"exp":(\d+),"lv":(\d+),"slv":(\d+),"mcnt":(\d+),"no":(\d+),"plus":\[(\d+),(\d+),(\d+),0\]\}
{"cuid":117,"exp":0,"lv":99,"slv":7,"mcnt":0,"no":692,"plus":[99,99,99,3]}下面轉換成上面是對的
可是底下這個我不管怎麼改都不成功,想請教有哪位大大懂得怎麼修改
"res": 0,
"hash": "527611e0104",
"btype": "3",
"barg": "15000",
"fp": 10,
"waves": [{
"seq": "1",
"monsters": [{
"type": 0,
"num": "67",
"lv": 10,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "199",
"lv": 9,
"item": "199",
"inum": 9,
"pval": 0
}]
}, {
"seq": "2",
"monsters": [{
"type": 0,
"num": "192",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "192",
"lv": 9,
"item": "192",
"inum": 9,
"pval": 1
}]
}, {
"seq": "3",
"monsters": [{
"type": 0,
"num": "199",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "192",
"lv": 9,
"item": "192",
"inum": 9,
"pval": 0
}, {
"type": 0,
"num": "197",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "4",
"monsters": [{
"type": 0,
"num": "75",
"lv": 10,
"item": "75",
"inum": 10,
"pval": 0
}, {
"type": 0,
"num": "194",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "197",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "5",
"monsters": [{
"type": 0,
"num": "197",
"lv": 9,
"item": "197",
"inum": 9,
"pval": 0
}, {
"type": 0,
"num": "194",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "67",
"lv": 10,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "6",
"monsters": [{
"type": 0,
"num": "197",
"lv": 9,
"item": "197",
"inum": 9,
"pval": 0
}, {
"type": 0,
"num": "197",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "194",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "7",
"monsters": [{
"type": 0,
"num": "199",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "197",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "192",
"lv": 9,
"item": 0,
"inum": 0,
"pval": 0
}, {
"type": 0,
"num": "199",
"lv": 9,
"item": "199",
"inum": 9,
"pval": 0
}]
}, {
"seq": "8",
"monsters": [{
"type": 3,
"num": "121",
"lv": 7,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "9",
"monsters": [{
"type": 3,
"num": "215",
"lv": 7,
"item": 0,
"inum": 0,
"pval": 0
}]
}, {
"seq": "10",
"monsters": [{
"type": 1,
"num": "187",
"lv": 8,
"item": "9900",
"inum": 15000,
"pval": 0
}]
}]
}上面那一大串不知該怎麼轉換成一個通式,求助謝謝 |