ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Inner Classes | Public Static Methods | Public Methods | Properties | List of all members
DynamicJSONDeserializer Class Reference
Inheritance diagram for DynamicJSONDeserializer:
[legend]
Collaboration diagram for DynamicJSONDeserializer:
[legend]

Class Description


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.

Inner Classes

class  DynamicJsonObject
 

Public Static Methods

static IDictionary< string, object > FromString (String json)
 

Public Methods

override object Deserialize (IDictionary< string, object > dictionary, Type type, JavaScriptSerializer serializer)
 
override IDictionary< string, object > Serialize (object obj, JavaScriptSerializer serializer)
 

Properties

override IEnumerable< Type > SupportedTypes [get]
 

Member Function Documentation

◆ Deserialize()

override object Deserialize ( IDictionary< string, object >  dictionary,
Type  type,
JavaScriptSerializer  serializer 
)
inline

See class JavaScriptConverter for more info

Parameters
dictionarySee parent class.
typeSee parent class.
serializerSee 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
jsonThe 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
objSee parent class.
serializerSee parent class.
Returns
see parent class

Property Documentation

◆ SupportedTypes

override IEnumerable<Type> SupportedTypes
get

See class JavaScriptConverter for more info

Parameters
dictionarySee parent class.
typeSee parent class.
serializerSee parent class.
Returns
see parent class

The documentation for this class was generated from the following file: