Replace WCF default JSON serialization -


is possible replace default json serialization of wcf (i'm testing webhttp behaviour), , passing application/json mime type. in particular, don't default every property key/value pair like:

{"key":"propertyname", "value":"propertyvalue"} 

i'm using service json-enabled endpoints (requesting data jquery + wcf).

you can use message formatter change serializer used deal json. post @ http://blogs.msdn.com/b/carlosfigueira/archive/2011/05/03/wcf-extensibility-message-formatters.aspx shows example on how change default serializer (datacontractjsonserializer) 1 (json.net).


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -