我正在使用格式如此
的数组[
[{
"ID": "f75d414d-55fc-43c8-a24d-34eca67913b7",
"Revision": "a8c73a24-d46a-47c8-825e-511b26485e23",
"type": "Hello",
"Stage": null,
"label": null,
},
{
"ID": "f75d414d-55fc-43c8-a24d-34eca67913b7",
"Revision": "a8c73a24-d46a-47c8-825e-511b26485e23",
"type": "world",
"Stage": null,
"label": null,
}]
]
我需要转换为此
[{
"ID": "f75d414d-55fc-43c8-a24d-34eca67913b7",
"Revision": "a8c73a24-d46a-47c8-825e-511b26485e23",
"type": "Hello",
"Stage": null,
"label": null,
},
{
"ID": "f75d414d-55fc-43c8-a24d-34eca67913b7",
"Revision": "a8c73a24-d46a-47c8-825e-511b26485e23",
"type": "world",
"Stage": null,
"label": null,
}]
通过某种方式将变量(原始数组)保存到自身。光滑的方式会很好。
答案 0 :(得分:1)
我的头顶不会originalArray = originalArray[0]
将内部数组保存回原始变量?