Я предлагаю установить его в Int32.MaxValue.
JavaScriptSerializer serializer = new JavaScriptSerializer(); serializer.MaxJsonLength = Int32.MaxValue;