我的前端当前收到的REST呼叫响应为:
[
{
"Total": 54063120.8235,
"Percentage": 126.1001
},
{
"Total": 1464405,
"Percentage": 0
}
]
但我想要
[
Income:{
"Total": 54063120.8235,
"Percentage": 126.1001
},
taxes:{
"Total": 1464405,
"Percentage": 0
}
]
我该怎么做?
我将列表另存为
result = [Income, taxes]