The high level JSON Serializer wrapper that provides serialization and deserialization services to the application.
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
Westwind.Web.JsonSerializers.JSONSerializer
public class JSONSerializer : object
Class Members
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 |
public TType Deserialize |
|
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. |
Requirements
Namespace: Westwind.Web.JsonSerializersAssembly: westwind.web.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic