JavaScriptSerialzer has a public property named MaxJsonLength according to
Now, where you are deserializing your json, use this
JavaScriptSerializer serializer = new JavaScriptSerializer();
serializer.MaxJsonLength = Int32.MaxValue; //Or any size you want to use, basically int maxValue is 2GB, you shouldn't need this big json string to deserialize, else you are doing it wrong.
myObject obj = serializer.Deserialize<myObject>(yourJsonString);
And this should work perfectly, I recently figured this out through msdn and solved a problem that was bugging me for long.