我正在尝试展平json文件并将数组元素转换为对象,并从另一个数组分配这些对象值。我将在响应中同时发布所需的输出和当前的规格:
这是我的输入(响应中需要输出):
{
"information": {
"Id": "2",
"cId": "P2",
"sId": 11,
"dataFrom": "4/15/2018T6:31:02Z",
"dataTo": "4/15/2018T6:42:02Z"
},
"description": {
"indicator": "SomeName",
"details": {
"headers": [
"id",
"aId",
"NAME4"
],
"values": [
[
1609,
12,
"NAME3"
],
[
1610,
11,
"NAME2"
]
]
}
}
}```