Fails with a Out of memory expression on large lists


Fails with an out of memory exception from StringBuilder class because it exceeds its max capacity (max int) while trying to serialize a long list. I have this same problem with fatJson too and seems to be a common case with most.net serializers, that use StringBuilder.
Closed Apr 7, 2012 at 10:24 AM by JamesNK
Wouldn't the solution be to using a StreamWriter and writer to a file on disk using a FileStream or to memory with a MemoryStream?