Codable
The three Encodable
, Decodable
and Codable
aspects can be used to automatically make a custom type serializable to Json, Xml or custom formats using Elements RTL's Serialization infrastructure.
It is defined not in the standard aspect library but in RemObjects.Elements.Serialization.dll
, which must be referenced manually to use the aspect. It is supported (with some limitations) for all Elements platforms.
Encode
The auxiliary Encode
aspect can be used to override the serialization name/key for individual properties in types use the Encodable
, Decodable
and Codable
aspects, or to exclude them from coding altogether.