【问题标题】:Max length sending JSON to an ASP.NET MVC Action将 JSON 发送到 ASP.NET MVC 操作的最大长度
【发布时间】:2020-05-13 06:15:30
【问题描述】:

当我尝试发送超过 400 条记录的列表时(每条记录的长度不会超过 900 个字符)。在 web.config 中将 maxJsonLength 属性设置为其最大值后,仍然没有出现任何错误。 当我尝试发送少于 30 条记录的列表时。效果很好。

【问题讨论】:

标签: json json-deserialization maxlength json-serializable


【解决方案1】:
<scripting>
  <webServices>
    <jsonSerialization maxJsonLength="50000000">
    </jsonSerialization>
  </webServices>
</scripting

【讨论】:

    猜你喜欢
    • 2012-02-22
    • 1970-01-01
    • 2013-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多