I have a WCF restul service and I want to allow the user to choose what request format they want, i have the decorations
[OperationContract] [WebInvo
You can do this if your rest service is configured automatically select response type.
Then on client request simply add needed header Accept: application/json