The inbound model for complex types is based on Reflection parsing of properties.
public class WestwindJsonSerializer : object, IJSONSerializer
Member | Description | |
---|---|---|
Constructor | Force a master Serializer to be passed for settings | |
SerializeFields | Determines whether fields are serialized | |
Deserialize | Takes a JSON string and attempts to create a .NET object from this structure. An input type is required and any type that is serialized to must support a parameterless constructor. public sealed object Deserialize(string jsonText,
Type valueType); |
|
Deserialize<TType> | Deserializes JSON string into a specified type value. public TType Deserialize<TType>(string jsonText);
|
|
ParseArray | Parses a JSON array string to its underlying array type. Requires: - Array must be of a single element type (ie. an object, or string or decimal) public object ParseArray(StringReader reader,
Type arrayType); |
|
ParseNumber | public object ParseNumber(string value,
Type valueType); public bool ParseNumber(string value,
ref object result); |
|
ParseString | Parses a JSON string into a string value public string ParseString(string value);
|
|
Serialize | Serializes a .NET object reference into a JSON string. public sealed string Serialize(object value);
|
|
WriteValue | Serialization routine that takes any value and serializes it into JSON. public void WriteValue(StringBuilder sb,
object val); |
|
DateSerializationMode | Encodes Dates as a JSON string value that is compatible with MS AJAX and is safe for JSON validators. If false serializes dates as new Date() expression instead. | |
FormatJsonOutput | Determines if there are line breaks inserted into the JSON to make it more easily human readable. |