Guidance or example on resolving types on deserialize

May 25, 2010 at 6:31 AM

Hello,

I know about the $Type but is there anyway to be less specific will this ?

i.e. with the following json,

{"Type":"register","Data":{"FirstName":"Mrt","Address":{"Country":"Australia"}}}

or

{"$Type":"Register","FirstName":"Mrt","Address":{"Country":"Australia"}}

NOTE: the type doesn't have assembly or namespace, it's really just a key for the DI to create the correct object.

I would like to inspect the Type and based on the register, be able to create the type from my own mapping implementation.

Whats the best way to achieve this ?

Cheers,

MrT