【发布时间】:2021-12-30 01:01:17
【问题描述】:
我有这个输入 JSON:
{
"stores": {
"1100": {
"metric1": "27",
"metric2": "3013775",
"indicator": 8.96
},
"1200": {
"metric1": "2",
"metric2": "354418",
"indicator": 5.64
}
}
}
并且需要将每个store的值转换成来自子indicator的值,像这样:
{
"stores": {
"1100": 8.96,
"1200": 5.64
}
}
我该怎么做?
【问题讨论】: