我想将其更改json
为xml
,我不知道如何创建xml
相同的,请有人告诉我一些代码如何将其更改json
为xml
:--
json
代码为:-
{
"pizza": [{
"title": "Pizza Item 1",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"cost": "$0.00",
"imageUri": "http://www.pizzahut.com.au/images/menu/Pizza-Lge-BBQ_Meatlovers.png"
}, {
"title": "Pizza Item 2",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"cost": "$0.00",
"imageUri": "http://www.pizzahut.com.au/images/menu/Pizza-Lge-BBQ_Meatlovers.png"
}],
"cake": [{
"title": "Cake Item 1",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"cost": "$0.00",
"imageUri": "http://www.allindiaflorist.com/imgs/cake4.jpg"
}, {
"title": "Cake Item 2",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"cost": "$0.00",
"imageUri": "http://www.allindiaflorist.com/imgs/cake4.jpg"
}, {
"title": "Cake Item 3",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"cost": "$0.00",
"imageUri": "http://www.allindiaflorist.com/imgs/cake4.jpg"
}]
}