This project has moved and is read-only. For the latest updates, please go here.

Serialization size limit.

Dec 9, 2010 at 6:32 PM

                TextWriter twt = new StreamWriter("c:/test.json");
                JsonTextWriter tw = new JsonTextWriter(twt);
                tw.WriteRaw(JsonConvert.SerializeObject(test, Newtonsoft.Json.Formatting.Indented));

Here's the code I use for serialization. It writes to the file successfully until 264 kb is reached. I have 12256 lines in my json file. It stops every time at 264 kb. How can I workaround this problem?