Provides serialization and deserialization functionality for AJAX-enabled applications.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Mapping Between Managed Types and JSON
The following table shows the mapping between managed types and JSON for the serialization process. These managed types are natively supported by . When you are deserializing from a JSON string to a managed type, the same mapping applies. However, deserialization can be asymmetric; not all serializable managed types can be deserialized from JSON.
A multidimensional array is serialized as a one-dimensional array, and you should use it as a flat array.
String (UTF-8 encoding only).
Single null char (such as, \0 )
Boolean. Represented in JSON as true or false
nullptr (nullptr object references and Nullable value types).
A string value of null
A string value of null
Date object, represented in JSON as "\/Date(number of ticks)\/". The number of ticks is a positive or negative long value that indicates the number of ticks (milliseconds) that have elapsed since midnight 01 January, 1970 UTC.
Enumerations of integer type
Integer equivalent of the enumeration value
Types that implement IEnumerable or System.Collections.Generic::IEnumerable<T> that are not also implementations of IDictionary or System.Collections.Generic::IDictionary<TKey, TValue>. This includes types such as Array, ArrayList, and List<T>.
Array that uses JSON array syntax
Types that implement IDictionary or System.Collections.Generic::IDictionary<TKey, TValue>. This includes types such as Dictionary<TKey, TValue> and Hashtable.
Custom concrete (non-abstract) types that have public instance properties that have get accessors or public instance fields.
Note that public write-only properties, public property or public field attributes marked with ScriptIgnoreAttribute, and public indexed properties in these types are ignored.
String representation of a GUID
String representation of the return value of GetComponents
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.