IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Helper class for JSON serialization and deserialization. This class enables formatting of the generated JSON with propper indentation, which is not the case with its base class. JSON Serializer has several limitations, such as:
Public Member Functions | |
SerializerJson () | |
SerializerJson (bool formatted) | |
override void | Serialize< T > (T serializedObject, Stream serializationStream) |
Serializes the specified object and outputs it to a stream. | |
Properties | |
static new SerializerJson | Global [get] |
Gets a global helper object for JSON serialization. | |
bool | Formatted [get, set] |
JsonFormatter | Formatter [get, set] |
Private Attributes | |
bool | _formatted |
JsonFormatter | _formatter |
Static Private Attributes | |
static SerializerJson | _global = new SerializerJson() |
Helper class for JSON serialization and deserialization. This class enables formatting of the generated JSON with propper indentation, which is not the case with its base class. JSON Serializer has several limitations, such as:
$A Igor jun09;
IG::Lib::SerializerJson::SerializerJson | ( | ) | [inline] |
IG::Lib::SerializerJson::SerializerJson | ( | bool | formatted | ) | [inline] |
override void IG::Lib::SerializerJson::Serialize< T > | ( | T | serializedObject, |
Stream | serializationStream | ||
) | [inline] |
Serializes the specified object and outputs it to a stream.
T | Type of the object to be serialized. |
serializedObject | Object to be serialized. |
serializationStream | Stream on which the serialized object is output. |
Reimplemented from IG::Lib::SerializerJsonBase.
SerializerJson IG::Lib::SerializerJson::_global = new SerializerJson() [static, private] |
Reimplemented from IG::Lib::SerializerJsonBase.
bool IG::Lib::SerializerJson::_formatted [private] |
new SerializerJson IG::Lib::SerializerJson::Global [static, get] |
Gets a global helper object for JSON serialization.
Reimplemented from IG::Lib::SerializerJsonBase.
bool IG::Lib::SerializerJson::Formatted [get, set] |
JsonFormatter IG::Lib::SerializerJson::Formatter [get, set] |