我有下面的数组,我已经从csv文件提取
array
[
{ "Date;Department;Value": "2022-09-08;dept1;7856"},
{ "Date;Department;Value": "2022-09-08;dept2;9876"}
]
我需要以下输出:
[
{
"Date":"2022-09-08",
"Department":"dept1",
"Value":7856
},
{
"Date":"2022-09-08",
"Department":"dept2",
"Value":9876
}
]
1条答案
按热度按时间e7arh2l61#
这是完全可行的,只要把问题一步一步来: