NAME
RPC::Lite::Serializer -- Base class for RPC::Lite::Serializers.
DESCRIPTION
RPC::Lite::Serializer outlines the basic functionality any serializer must implement.
METHODS
new
Creates a new serializer object.
VersionSupported( $version )
Returns a boolean indicating whether the given serialization version is supported.
GetVersion
Returns the current version of the serializer.
Serialize( $data )
Takes a reference to an object and serializes it, returning the result.
Deserialize( $data )
Takes serialized data and returns a deserialized object.
NOTE
RPC::Lite::Servers automatically instantiate any of the supported serializers as necessary to communicate with clients.
SUPPORTED SERIALIZERS
- JSON (client default)
-
"JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999." -- http://www.json.org/
- XML
-
"Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere." -- http://www.w3.org/XML/
- Null
-
The Null serializer is for communicating with native perl RPC::Lite servers on the same machine. It does nothing (and is largely untested, its use is not currently recommended unless you are a developer wishing to improve it).
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 23:
You can't have =items (as at line 29) unless the first thing after the =over is an =item