Return Json Object In Specific Format From WCF

Posted by Sujitgujrathi under WCF on 2/14/2013 | Points: 10 | Views : 1597 | Status : [Member] | Replies : 0
I know how to return a json object from WCF, I am stuck with return Json objects in Specific Format
At the time of sending response from the server side, the Json object should contain Message and Status.
Like
{
"Result": {
"Status": "1",
"Message": "message according to status",
"JSArray": [
{
"JSCity": {
"city_id": "23",
"city_short_name": "CY",
"city_long_name": "Cypress "
}
},
{
"JSCity": {
"city_id": "62",
"city_short_name": "DB",
"city_long_name": "Dublin"
}
},
{
"JSCity": {
"city_id": "48",
"city_short_name": "FJ",
"city_long_name": "Fort Jones"
}
},
{
"JSState": {
"city_id": "45",
"city_short_name": "ML",
"city_long_name": "Malibu "
}
}
]
}
}

Highly appriciate your help.

Awaiting your response on the same.

Regards
sujit




Responses

(No response found.)

Login to post response