我有一個JSON由以下數據:如何從JSON創建新的JSON?
{
"comment": {
"S": "Nice"
},
"id": {
"S": "1ca38300-8938-11e5-8656-9bf2d3249757"
},
"postId": {
"S": "083c1f50-8b84-11e5-9021-7da869825160"
},
"spam": {
"N": "0"
},
"tags": {
"L": [
{
"S": "test1"
},
{
"S": "test2"
}
]
}
}
而現在,我想上面的JSON格式以下格式,如:
{
"comment":"Nice",
"id":"1ca38300-8938-11e5-8656-9bf2d3249757",
"postId":"083c1f50-8b84-11e5-9021-7da869825160",
"tags":["test1","test2"]
}
是的,我想這一個,但我的回覆N多,所以如何處理 –
我回答了有關對象的轉變。如果你的qurestion是關於處理回覆的,請更具體地敘述它。 – Kreozot
你的回答對我很有幫助,非常感謝。 –