API to allow structures to be serialised and de-serialized. This API will only return basic types like hashes and arrarys
StaticMethodserialise( $value, $style ) → $cereal
$valuethe perl object we're serializing (typically a ref/obj)
#TODO: do we need to use Foswiki, or can we throw a Simple exception instead? #I think to be reusable we catually have to throw..
StaticMethoddeserialise( $text, $style, $into ) → $data
$textthe data we are deserialising
$styleserialization format TODO: please work out how to add some autodetection of format
$intothe perl object we're deserializing into. The serialiser is matched to this object type.
Finishes all instantiated serialisers. There should only be at most one of each serialiser instantiated at any given time, so you normally wouldn't want to call this, except perhaps from the unit test framework; see Item11349.