Small class which provides a quick and easy reader for "unknown" JSON formatted data. (Copied from a web forum, I would not have been able to get this syntax * done :-P ). The output is basically is a nested dictionary and can nicely be passed into LogTools.Instance() method for reviewing the JSON data contents.
|
static IDictionary< string, object > | FromString (String json) |
|
|
override object | Deserialize (IDictionary< string, object > dictionary, Type type, JavaScriptSerializer serializer) |
|
override IDictionary< string, object > | Serialize (object obj, JavaScriptSerializer serializer) |
|
◆ Deserialize()
override object Deserialize |
( |
IDictionary< string, object > |
dictionary, |
|
|
Type |
type, |
|
|
JavaScriptSerializer |
serializer |
|
) |
| |
|
inline |
See class JavaScriptConverter for more info
- Parameters
-
dictionary | See parent class. |
type | See parent class. |
serializer | See parent class. |
- Returns
- see parent class
◆ FromString()
static IDictionary<string, object> FromString |
( |
String |
json | ) |
|
|
inlinestatic |
Static method to deserialize a JSON data from a string. Returns a nested dictionary containing the JSON data.
- Parameters
-
json | The JSON data as a String. |
- Returns
- A dictionary representing the values
◆ Serialize()
override IDictionary<string, object> Serialize |
( |
object |
obj, |
|
|
JavaScriptSerializer |
serializer |
|
) |
| |
|
inline |
See class JavaScriptConverter for more info
- Parameters
-
obj | See parent class. |
serializer | See parent class. |
- Returns
- see parent class
◆ SupportedTypes
override IEnumerable<Type> SupportedTypes |
|
get |
See class JavaScriptConverter for more info
- Parameters
-
dictionary | See parent class. |
type | See parent class. |
serializer | See parent class. |
- Returns
- see parent class
The documentation for this class was generated from the following file:
- DynamicJSONDeserializer.cs