I am using below Code for WCF Rest Services to get in JSON format
[OperationContract]
[WebGet(UriTemplate = \"/GetOrderList?request={request}\", BodyStyl
You don't even need to specify the return type here , we have a property called automaticFormatSelectionEnabled for WebGet in end point behaviors as shown below. When you making your rest call request from client, you can specify the type as WebClient.Headers["Content-type"] = "application/json"; or WebClient.Headers["Content-type"] = "application/xml"; , service will detect the type and return the correct format you want ..