我想把一个有规律的数组转成json对象的数组呢,如下:数组["3040131111","小明","1","大学体育Ⅰ","通识课","2.00","75","总评成绩","2.50","A16603001A","32.00","3040133109","小明","1","基础英语Ⅰ","通识课","4.00","80","总评成绩","3.00","A17001021A","64.00"]转成这种[{"学号":"3040111111","姓名":"小明","学期":"1","课程":"大学体育Ⅰ","类别":"通识课","学分":"2.00","成绩":"75","成绩类型":"总评成绩","绩点":"2.50","课程彪悍":"A16603001A","课时":“32.00”},{"学号":"3040111111","姓名":"小明","学期":"1","课程":"大学体育Ⅰ","类别":"通识课","学分":"2.00","成绩":"75","成绩类型":"总评成绩","绩点":"2.50","课程彪悍":"A16603001A","课时":“32.00”}]用什么方法去做呢?
添加回答
举报
0/150
提交
取消