WCF/WF - how to return json format values - Asked By pankaj singh on 12-Apr-13 03:32 AM

hi expert

I have made a web service for mobile application

i assign all values in one string variable,i have a question that how to return

{"UserId":"xxxxxxxxxxxxxx","UserName":"xxxxx","Status":"true"}

this format values
Danasegarane Arunachalam replied to pankaj singh on 12-Apr-13 09:42 PM
Use the JavaScriptSerializer

Refer : http://www.devx.com/tips/Tip/43148
Erik Little replied to pankaj singh on 13-Apr-13 01:01 PM
You can use the WEB API Controller, the web api controller serializes a .net object and returns JavaScript objects by default.