WCF AAAAArrrrrrHHHHHHHHH WebHttpBinding JSON Serialization

Oscar Brito

Having problems with WebHttpBinding Serialization??? just follow the rules...

Never forget MSDN documentation!!!!!


When enabled, automatic formatting chooses the best format in which to return the response. It determines the best format by checking the following, in order:

  1. The media types in the request message's Accept header.

  2. The content-type of the request message.

  3. The default format setting in the operation.

  4. The default format setting in the WebHttpBehavior.

Example Fiddler message:

Host: localhost:1312
Content-Type: application/json; charset=utf-8

Host: localhost:1312
Accept: application/json; charset=utf-8

Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.
Feel free to contact divhide.