我有一个 JSON 响应可以根据我们的需要进行定制
响应如下所示,其中包含多个带有数据的数组
但我想整理像 MAIN 这样的单个类别,并在一个数组中显示所有相关的东西,其值
[
{
"Main": [
"Map View"
],
"Reports": [
"Sensor Data Report"
],
"Configuration": [
"Region Configuration"
],
"Admin": [
"Customer Management"
]
},
{
"Main": [
"Map View"
],
"Reports": [
"Sensor Data Report"
],
"Configuration": [
"Region Configuration"
],
"Admin": [
"Device Management"
]
}
]
但我需要这样的东西
{
"Main": [
"Dashboard",
"Devices"
],
"Reports": [
"Alert Report",
"MOnthly Reports"
],
"Configuration": [
"Region Configuration",
"Device Management"
]
}
慕村225694