我正在尝试从多个 CSV 文件创建一个 JSON 文件。这些文件将被命名为 bugs.csv 和 executions.csv。
bugs.csv 文件示例:
month,,1,2,3,4
app1,ownerA,42,34,38,12
app2,ownerA,13,23,24,43
app3,ownerB,48,72,39,62
executions.csv 文件的示例:
month,,1,2,3,4
app1,ownerA,1200,1500,900,1000
app2,ownerA,600,650,660,540
app3,ownerB,2750,3500,3000,3200
我希望 JSON 看起来像什么:
[{"Application":"app1",
"Owner":"ownerA",
"bugs":[[1,42],[2,34],[3,38],[4,12]],
"executions":[[1,1200],[2,1500],[3,900],[4,1000]]},
{"Application":"app2":,
"Owner":"ownerA",
"bugs": [[1,13],[2,23],[3,24],[4,43]],
"executions":[[1,600],[2,650],[3,660],[4,540]]}]