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.

 

 

 

 

 

 

 

JavaScriptSerializer Constructor

Initializes a new instance of the JavaScriptSerializer class with no type resolver.

Syntax

CSharp

public JavaScriptSerializer ()

VisualBasic

Public Sub New

ManagedCPlusPlus

public:
JavaScriptSerializer ()

JSharp

public JavaScriptSerializer ()

Remarks

An instance of the JavaScriptSerializer class without a type resolver does not include type metadata markers ("__type") in the serialized JavaScript Object Notation (JSON) string. A type metadata marker is used by the Deserialize<(Of T>)(String) and DeserializeObject(String) methods to determine the appropriate managed type to which the JSON string will be converted. For information about type resolvers, see the JavaScriptTypeResolver class.

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