Jon Thanks for responding and apologies for the delay in getting back to this. The classes that I'm deserializing to are just standard .NET classes, so don't think they inherit from Java.Lang.Object. Is there an alternative that is recommended for decoding JSON to classes? It would appear that JsonArray is not much better - still throws an exception.
Nick Randolph | Built to Roam Pty Ltd | Microsoft MVP - Windows Phone Development | +61 412 413 425 The information contained in this email is confidential. If you are not the intended recipient, you may not disclose or use the information in this email in any way. Built to Roam does not guarantee the integrity of any emails or attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Built to Roam. -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor Sent: Saturday, 27 August 2011 10:23 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] DataContractJsonSerializer on MonoDroid On Aug 26, 2011, at 10:27 PM, Nick Randolph wrote: > Does anyone have a sample of this that works. I don't have a sample, but I think I know the problem you're seeing. You cannot currently use DataContractJsonSerializer with types inheriting (directly or indirectly) from Java.Lang.Object, because DataContractJsonSerializer doesn't invoke the Java.Lang.Object constructor. (Consequently, the Java-side object is never allocated, and things go "weird" quickly.) - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid