This class merely defers operation to the specified JSON parsing implementation to allow for pluggable JSON serializers to be used.
Supported parsers include:
* West Wind Native that's built-in (no dependencies) (This is the default) * JavaScriptSerializer (ASP.NET JavaScript Serializer) * JSON.NET (requires JSON.NET assembly to be included and JSONNET_REFERENCE global Define
public class JSONSerializer : object
Member | Description | |
---|---|---|
Constructor | Default Constructor - assigns default | |
DefaultJsonParserType | This property determines the default parser that is created when using the default constructor. This is also the default serializer used when using the AjaxMethodCallback control. | |
SerializeFields | Determines whether fields are serialized. Supported only for the West Wind JSON Serializer | |
Deserialize | public object Deserialize(string jsonString,
Type type); |
|
Deserialize<TType> | public TType Deserialize<TType>(string jsonString);
|
|
Serialize | public string Serialize(object value);
|
|
DateSerializationMode | Determines the date serialization mode supported for the Westwind and Json.NET parsers (not the JavaScript JSON Serializer) | |
FormatJsonOutput | Determines if there are line breaks inserted into the JSON to make it more easily human readable. |