I am trying to create a JSON file from multiple CSV files. The files would be named like bugs.csv and executions.csv.
Example of the bugs.csv files:
month,,1,2,3,4
app1,ownerA,42,34,38,12
app2,ownerA,13,23,24,43
app3,ownerB,48,72,39,62
Example of the executions.csv files:
month,,1,2,3,4
app1,ownerA,1200,1500,900,1000
app2,ownerA,600,650,660,540
app3,ownerB,2750,3500,3000,3200
What I would like the JSON to look like:
[{"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]]}]