I want to create a WCF rest service which accept a json data and parse all value.
My json data coming from client side like this:
{"user":{"UserName":"123","Pass":"123"}}
i create a simple wcf OperationContract :
[OperationContract]
[WebInvoke(Method = "POST",
UriTemplate = "Login",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json
)]
string Login(User user);
what can i do in this login method for parsing the json data??