Method | Description | |
---|---|---|
DeserializeObject ( object value, |
Deserialize an object
|
|
NancySerializationStrategy ( ) : System |
Initializes a new instance of the NancySerializationStrategy class. C# casing of objects will be defaulted to camelCase |
|
NancySerializationStrategy ( bool retainCasing ) : System |
Initializes a new instance of the NancySerializationStrategy class.
|
|
RegisterConverters ( IEnumerable |
Register custom JavaScriptConverter converters
|
|
RegisterConverters ( IEnumerable |
Register custom JavaScriptPrimitiveConverter
|
Method | Description | |
---|---|---|
MapClrMemberNameToJsonFieldName ( string clrPropertyName ) : string |
Formats a property name to a JSON field name
|
|
TrySerializeKnownTypes ( object input, object &output ) : bool |
Serialize an object
|
Method | Description | |
---|---|---|
FindJavaScriptConverter ( |
||
FindPrimitiveConverter ( |
||
SerializeDateTime ( System.DateTime input, object &output ) : bool | ||
TrySerializeJavaScriptConverter ( object input, object &output, |
||
TrySerializePrimitiveConverter ( object input, object &output, |
public DeserializeObject ( object value, |
||
value | object | The object to deserialize |
type | The type of object to deserialize | |
return | object |
protected MapClrMemberNameToJsonFieldName ( string clrPropertyName ) : string | ||
clrPropertyName | string | The property name to format |
return | string |
public NancySerializationStrategy ( ) : System | ||
return | System |
public NancySerializationStrategy ( bool retainCasing ) : System | ||
retainCasing | bool | Retain C# casing of objects when serialized |
return | System |
public RegisterConverters ( IEnumerable |
||
javaScriptConverters | IEnumerable |
An array of |
return | void |
public RegisterConverters ( IEnumerable |
||
javaScriptPrimitiveConverters | IEnumerable |
An array of |
return | void |
protected TrySerializeKnownTypes ( object input, object &output ) : bool | ||
input | object | The object to serialize |
output | object | The serialized object |
return | bool |