What Was I Thinking?

Follies & Foils of .NET Development
posts - 95 , comments - 352 , trackbacks - 0

June 2011 Entries

How can I include my derived class type name in the serialized JSON?
Sometimes working with the js Serializer is easy, sometimes its not. When I attempt to serialize an object that is derived from a base, the serializer decided whether or not to include the type name. When its present, the type name is represented by a ___type attribute in the serialized json like this: {"d":{"__type":"Commerce.In... The missing type name is a problem if I intend to ship the object back into a web method that needs to deserialize the ......

Posted On Thursday, June 30, 2011 8:35 PM | Comments (2) | Filed Under [ Visual Studio ]

Powered by: