1

Closed

Exception thrown when deserializing List<Stack<string>> with TypeNameHandling.All

description

Attached is a small code example. This was testing with .NET 4.0, VS 2010, JSON.NET 5.0.8 straight off NuGet.

Using a List<List<string>> works fine.
Not including type information works fine (using TypeNameHanding.Auto)

file attachments

Closed Dec 15, 2013 at 1:40 AM by JamesNK
I think it is a bug in .NET when the full assembly name isn't included. Add TypeNameAssemblyFormat = FormatterAssemblyStyle.Full

comments