String orderdata="[
{productid: 1, count: 2},
{productid: 7, count: 7},
{productid: 81, count 2}
]"
String userId=2;
String slotdatetime=21/11/2015 5:00 PM
String address=204, Phase IV, Gurgaon
String total=2300;
This data i have available i have to make Json Format data like this
{
userId: "2",
slotdatetime: "21/11/2015 5:00 PM",
address: "204, Phase IV, Gurgaon",
total: "2300",
orderdata: [
{productid: 1, count: 2},
{productid: 7, count: 7},
{productid: 81, count 2}
]
}
But there is Problem to create Single String in which i have get given data like this please help me .