size limit on serializing data using json.net?

Oct 6, 2011 at 4:31 PM

I have developed an asp.net web application and initially serialized some data to a json string using the built in javascript serializer. This became problematic as I discovered later on that there was an issue about the amount of data I was able to serialize. I kept getting ""Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property". This was quickly fixed by using json.net to serialize /deserialize my data.  This implied that either there is no preset maximum size when using json.net to serialize /deserialize or that there is a limit that's higher than that used by javascriptserializer.

My question is rather straightforward. Will I run into a similar in the future regarding size capacity when serializing /deserializing using json.net? i.e Is there a size limit when serializing data using json.net  or can I assume there is no limit and my program should be fine as the size of the database increases? Thanks in advance.