Possible Duplicate:
Java implementation of JSON to XML conversion
Simplest method to Convert Json to Xml
I want to change this json
to xml
, I don't know how to create xml
for the same, please someone show me some code how can I change this json
to xml
:--
json
code is:-
{
"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"
}]
}