0
大量的JSON到XML的在線資源,但只有當它們是正常的數組格式,而不是字典。如何將JSON字典轉換爲XML?
有誰知道我該怎麼辦?我想在我的項目中使用XML,但是當我轉換了,我只是得到它用處不大的情況如下:
< 0 KiFRirIKU_I0FIXWj1j =「的翻譯:」 KiQPi-1EiURvD3zK2IY =「的翻譯:」
我該怎麼辦?
的JSON字典的示例如下:
[{
"-KiFRirIKU_I0FIXWj1j": {
"category": "1",
"id": "-KiFRirIKU_I0FIXWj1j",
"image_url": "",
"message": "Water leaking out side of it for ages now but it's coming out the bottom now too!",
"postcode": "LL53",
"reports": "0",
"status": "0",
"time": "21-04-2017 13:18:25",
"title": "Leaking Bath, L12 area!",
"user_id": "esO8EE8aoLM3bvKalHNvI9Hv7Ra2"
},
"-KiQPi-1EiURvD3zK2IY": {
"category": "3",
"id": "-KiQPi-1EiURvD3zK2IY",
"image_url": "/v0/b/fixee-164914.appspot.com/o/esO8EE8aoLM3bvKalHNvI9Hv7Ra2514653921592.jpg",
"message": "How much would it cost a week to keep this in decent shape? Had extortionate quotes and need it done cheap soon!",
"postcode": "LE11 3UQ",
"reports": "0",
"status": "0",
"time": "23-04-2017 16:25:23",
"title": "Gardener Required!!",
"user_id": "esO8EE8aoLM3bvKalHNvI9Hv7Ra2"
}]