You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve the toJson() method current implementation which uses Newtonsoft.Json internally to prevent from System.OutOfMemoryException for large number of records
Reproduction of the problem
Create an action method that returns JSON from an excel document with large number of records:
public ActionResult Read()
{
var cuastomerPath = Server.MapPath("~/App_Data/AR_Converter.xlsx");
var workbook = Telerik.Web.Spreadsheet.Workbook.Load(cuastomerPath);
//Uses Newtonsoft.Json internally to serialize fields correctly.
return Content(workbook.ToJson(), Telerik.Web.Spreadsheet.MimeTypes.JSON);
}
Current behavior
Exception of type 'System.OutOfMemoryException' was thrown.
Expected/desired behavior
No errors are thrown
Environment
Kendo UI version: 2018.1.221
The text was updated successfully, but these errors were encountered:
Description
Improve the toJson() method current implementation which uses Newtonsoft.Json internally to prevent from System.OutOfMemoryException for large number of records
Reproduction of the problem
Create an action method that returns JSON from an excel document with large number of records:
Current behavior
Exception of type 'System.OutOfMemoryException' was thrown.
Expected/desired behavior
No errors are thrown
Environment
The text was updated successfully, but these errors were encountered: