Hello forum,
I am new to Mono for Android and I am facing the following problem with
deserializing a Webservice json response using DataContractJsonSerializer. I
only use .net classes like the following:
public class SearchResponse
{
public string Msg {get;set;}
public string Status {get;set;}
public Education[] Data {get;set;}
}
public class Education
{
public int BookingNumber {get;set;}
public string Title {get;set;}
public string Description {get;set;}
public Duration Duration {get;set;}
}
public class Duration
{
public string StartDate {get;set;}
public string EndDate {get;set;}
}
Every time I try to deserialize this response I receive the
InvalidCastException: Could not cast the source type to the destination
type.
The strange thing about this is, if I try to deserialize an even simpler
class all works fine.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Json-Deserialization-fails-tp4924572p4924572.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid