deserialise a class list

Feb 11, 2010 at 11:19 AM

I am sorry, this must be very basic knowledeg. But I am not able to find a working example. Please help.

 

class base

{

}

class d1 : base

{

}

class d2 : base

{

}

For List<base>  json file

[

{ "class" : "d1 "},

{ "class" : "d2 "}

]

How to deserialise this json back to List<base>?