module Athena::Framework::Serializer::Interface
#
Serializes the data returned from controller actions, and deserializes request bodies, on behalf of the framework.
If the Serializer bundle is registered, the framework uses ATH::Serializer::ComponentSerializer, the implementation backed by the Serializer component.
Otherwise data is serialized via #to_json, and request bodies are deserialized into JSON::Serializable types.
Direct including types
Athena::Framework::Serializer::ComponentSerializer
Methods#
abstract #deserialize(data : IO, type : _, format : String)#
Returns an instance of type deserialized from the provided data in the provided format, or nil if type is not supported.
abstract #serialize(data : _, format : String, context : ATH::View::Context) : String#
Returns data serialized into the provided format, using the options from the provided context.