User-712926555 posted
Hi,
I have to create a android app. I am creating a web service in .asmx, it will return in json format.
["message":"Login successfully",
"username":"aravinth",
"userid":1234,
"organization":"M-ULink",
"organizationId":124,
"branch":"Salem-4 Roads",
"branchId":432]
But I need to return the format like as below
{
"statusCode":200,
"referenceAPI":"/hotel/login",
"success":{
"result":{
"message":"Login successfully",
"username":"myname",
"userid":1234,
"organization":"mycompany",
"organizationId":124,
"branch":"mybranch",
"branchId":432
}
},
"failure":{
"message":""
}
}
How to return web service in the above format in asp.net 4.0