Ext.NET
5.3.0
.NET Component Framework for Enterprise Level Apps
|
Convenience wrappers for Json.NET More...
Static Public Member Functions | |
static string | Serialize (object obj, IList< JsonConverter > converters, IContractResolver resolver) |
Serializes the specified object to a Json object. More... | |
static string | Serialize (object obj, JsonSerializerSettings settings) |
Serializes the specified object to a Json object. More... | |
static JRawValue | JavaScriptSerialize (object obj, bool sourceFormatting=false) |
Serializes the object not as a JSON object, but a lowerCamelCased JavaScript object itself. Notice the result will NOT be a JSON-compliant value! More... | |
static object | Deserialize (string value, Type type, IList< JsonConverter > converters, IContractResolver resolver) |
Serializes the Json object to a specific object. More... | |
static object | Deserialize (string value, Type type, JsonSerializerSettings settings) |
Serializes the Json object to a specific object. More... | |
static string | Serialize (object obj, IList< JsonConverter > converters) |
Serializes the specified object to a Json object. More... | |
static string | Serialize (object obj, JsonConverter converter) |
Serializes the specified object to a Json object. More... | |
static string | Serialize (object obj) |
Serializes the specified object to a Json object. More... | |
static string | Serialize (object obj, IContractResolver resolver) |
Serializes the specified object to a Json object. More... | |
static object | Deserialize (string value) |
Deserializes the specified object to a Json object. More... | |
static object | Deserialize (string value, Type type) |
Deserializes the specified object to a Json object. More... | |
static object | Deserialize (string value, Type type, IContractResolver resolver) |
Deserializes the specified object to a Json object. More... | |
static T | Deserialize< T > (string value) |
Deserializes the specified object to a Json object. More... | |
static T | Deserialize< T > (string value, IList< JsonConverter > converters) |
Deserializes the specified object to a Json object. More... | |
static T | Deserialize< T > (string value, IContractResolver resolver) |
Deserializes the specified object to a Json object. More... | |
static T | Deserialize< T > (string value, IList< JsonConverter > converters, IContractResolver resolver) |
Deserializes the specified object to a Json object. More... | |
static T | Deserialize< T > (string value, JsonSerializerSettings settings) |
Deserializes the specified object to a Json object. More... | |
static XmlNode | DeserializeXmlNode (string value) |
Deserializes the specified object to a Json object. More... | |
static string | ToString (JToken token) |
static string | EnumToString (object val) |
Gets the string representation of the enum value, considering the JavaScriptMap attribute and also ConfigOption attribute's JsonMode when ToLowerCase and ToLowerCamelCase. More... | |
static object | EnumParse (Type enumType, string value, bool ignoreCase=false) |
Gets the Enum representation of the specified string value, with the JavaScriptMap attribute taking precedence match over the enum name itself. It is always case-sensitive. If the enum's field has no JavaScriptMap attribute, the ordinary Enum name matching is used, considering JsonMode setting. More... | |
Properties | |
static JsonSerializerSettings | GlobalSettings [get, set] |
static JsonSerializerSettings | RequestSettings [get, set] |
static JsonSerializerSettings?? | CurrentSettings [get] |
static JsonSerializerSettings?? | CopyCurrentSettings [get] |
static List< JsonConverter > | Converters [get] |
static List< JsonConverter > | DateMsConverters [get] |
static List< JsonConverter > | ScriptConverters [get] |
Convenience wrappers for Json.NET
|
inlinestatic |
Deserializes the specified object to a Json object.
value | The object to deserialize. |
|
inlinestatic |
Deserializes the specified object to a Json object.
value | The object to deserialize. |
type | The Type of object being deserialized. |
|
inlinestatic |
Deserializes the specified object to a Json object.
value | The object to deserialize. |
type | The Type of object being deserialized. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Serializes the Json object to a specific object.
value | Json object |
type | Object's type |
converters | A List of JsonConverter objects to customize deserialization. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Serializes the Json object to a specific object.
value | Json object |
type | Object's type |
settings | Serializer settings |
|
inlinestatic |
Deserializes the specified object to a Json object.
T | The type of the object to deserialize. |
value | The object to deserialize. |
|
inlinestatic |
Deserializes the specified object to a Json object.
T | The type of the object to deserialize. |
value | The object to deserialize. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Deserializes the specified object to a Json object.
T | The type of the object to deserialize. |
value | The object to deserialize. |
converters | A List of JsonConverter objects to customize serialization. |
|
inlinestatic |
Deserializes the specified object to a Json object.
T | The type of the object to deserialize. |
value | The object to deserialize. |
converters | A List of JsonConverter objects to customize serialization. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Deserializes the specified object to a Json object.
T | The type of the object to deserialize. |
value | The object to deserialize. |
settings | Serializer settings |
|
inlinestatic |
Deserializes the specified object to a Json object.
value | The object to deserialize. |
|
inlinestatic |
Gets the Enum representation of the specified string value, with the JavaScriptMap attribute taking precedence match over the enum name itself. It is always case-sensitive. If the enum's field has no JavaScriptMap attribute, the ordinary Enum name matching is used, considering JsonMode setting.
enumType | The enum conversion wanted. |
value | The value to look for. |
ignoreCase | Whether to ignore case of the enum/value names or consider exact match or JsonMode conversion. |
If no JavaScriptMap is present, the enum match is case sensitive, It will look for the Enum type's ConfigOption attribute against the JsonMode setting, considering LowerCase and LowerCamelCase if present to compare the matches.
|
inlinestatic |
Gets the string representation of the enum value, considering the JavaScriptMap attribute and also ConfigOption attribute's JsonMode when ToLowerCase and ToLowerCamelCase.
val | The enum to be mapped to string. |
|
inlinestatic |
Serializes the object not as a JSON object, but a lowerCamelCased JavaScript object itself. Notice the result will NOT be a JSON-compliant value!
If the result is going to be eval'd in JavaScript, setting sourceFormatting=true will break the generated code, unless line breaking sequences (\r and
) are properly replaced.
obj | |
sourceFormatting |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
converters | A List of JsonConverter objects to customize serialization. |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
converters | A List of JsonConverter objects to customize serialization. |
resolver | The IContractResolver object to customize serialization. |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
converter | A JsonConverter object to customize serialization. |
|
inlinestatic |
Serializes the specified object to a Json object.
obj | The object to serialize. |
settings | Serializer settings |
|
inlinestatic |
token |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticgetset |
|
staticgetset |
|
staticget |