[Mono-list] JSON.NET / Mono question (Deserialization Hangs)

Bojan Rajkovic severedcross at gmail.com
Mon Dec 6 00:19:56 EST 2010

On Dec 4, 2010, at 9:43:17AM, Adam Tauno Williams wrote:

> mono-core-2.6.4-2.13.x86_64
> Json.NET 3.5 Release 8
> I call the deserializer and it works - I can see the objects created
> (deserialized) but then the deserializer never exits/returns.
> List<ListEntry> listed_entries =
>   JsonConvert.DeserializeObject<List<ListEntry>>(payload);
> Console.WriteLine("Deserialization complete");
> ListEntry objects are created, then the program 'hangs'.
> "Deserialization complete" never appears.

Are any of your object creations throwing exceptions? I had an issue like this a /while/ ago where exceptions were being thrown by the object constructors, but JSON.NET was swallowing them silently.
If you're not sure if you're getting exceptions, try running mono --trace=E:all your_app.exe to trace exception throws throughout the runtime of the process.

Hope this helps,

More information about the Mono-list mailing list