Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

MaxJsonLength Property

Gets or sets the maximum length that is accepted by the JavaScriptSerializer object for JavaScript Object Notation (JSON) strings.

Syntax

CSharp

[ConfigurationPropertyAttribute("maxJsonLength", DefaultValue = )]
public int MaxJsonLength { get; set; }

VisualBasic

<ConfigurationPropertyAttribute("maxJsonLength", DefaultValue := )> _
Public Property MaxJsonLength As Integer

ManagedCPlusPlus

[ConfigurationPropertyAttribute(L"maxJsonLength", DefaultValue = )]
public:
int MaxJsonLength {
	int get ();
	void set (int value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

An integer that represents the maximum length for JSON strings. The default is 102400 characters.

Remarks

The value of MaxJsonLength applies only to the internal JavaScriptSerializer instance that is used by the asynchronous communication layer to invoke Web services methods.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)