serialization $ RestrictedJsonSerializer :: SELF
Type of this instance, automatically specialized in every classserialization :: CachingSerializer :: cache=
Cache of known objectscore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializer :: current_object
The object currently serialized byserialized
json :: JsonSerializer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: CachingSerializer :: link
Link the cache ofself
with deserializer
core :: Object :: output_class_name
Display class name on stdout (debug only).json :: JsonSerializer :: plain_json
Write plain JSON? Standard JSON without metadata for deserializationjson :: JsonSerializer :: plain_json=
Write plain JSON? Standard JSON without metadata for deserializationjson :: JsonSerializer :: pretty_json=
Write pretty JSON for human eyes?serialization :: Serializer :: serialize
Entry point method of this service, serialize theobject
serialization :: Serializer :: serialize_attribute
Serialize an attribute to compose a serializable objectserialization :: Serializer :: serialize_core
The method is called when a standardvalue
is serialized
serialization :: Serializer :: serialize_reference
Serialize an object, with full serialization or a simple referenceserialization :: Serializer :: try_to_serialize
Serializevalue
is possible, i.e. it is Serializable
or null
serialization :: Serializer :: warn
Warn of problems and potential errors (such as if an attributeserialization :: RestrictedSerializer
Extends Serializer and adds specific business behaviors when dealing with business objects.
# Extends JsonSerializer and adds specific business behaviors when dealing with business objects.
class RestrictedJsonSerializer
super JsonSerializer
super RestrictedSerializer
end
lib/serialization/examples/custom_serialization.nit:124,1--128,3