Sherzy
3/17/2016 - 4:45 PM

Max JSON string

Max JSON string

public ContentResult JSONScheduleConflicts()
{
    var serializer = new JavaScriptSerializer();
    serializer.MaxJsonLength = Int32.MaxValue;

    var resultData = getScheduleConflicts();
    var result = new ContentResult
    {
        Content = serializer.Serialize(resultData),
        ContentType = "application/json"
    };
    return result;
}