Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Feb 28, 2012 01:50 PM|LINK
Is there a good example on how to create a MediaTypeFormatter/JsonConverter that can handle serialization/deserialization of json to dynamic?
I have the following scenario.
A class User that is abstract, from the User class I create an Administrator class that inherits and extends the User class.
Now I want to use the web api / api controller to save any object that extends/inherits the User class and as far as I know a custom mediatypeformatter can help me with this? Is there any example or maybe someone else have already done this?
This is some sample code to visual explain what I'm trying to do http://pastebin.com/sRGW62yw