From 830e7b70b0b9d605dc6f5775cb88448d8b2eff28 Mon Sep 17 00:00:00 2001 From: Jommel Colcol Date: Fri, 28 Jan 2022 22:52:15 +0800 Subject: [PATCH] fixed issue: The length of the string exceeds the value set on the maxJsonLength property --- src/JQDT.MVC/JQDataTableAttribute.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JQDT.MVC/JQDataTableAttribute.cs b/src/JQDT.MVC/JQDataTableAttribute.cs index 502f08a..ab6dbb5 100644 --- a/src/JQDT.MVC/JQDataTableAttribute.cs +++ b/src/JQDT.MVC/JQDataTableAttribute.cs @@ -215,7 +215,8 @@ private ActionResult FormatResult(object resultModel) var jsonResult = new JsonResult { JsonRequestBehavior = JsonRequestBehavior.AllowGet, - Data = resultModel + Data = resultModel, + MaxJsonLength = int.MaxValue }; return jsonResult;