Dancer2::Serializer::YAML - Serializer for handling YAML data
Contents
Attributes
content_type
Returns 'text/x-yaml'
Copyright And License
This software is copyright (c) 2024 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5
programming language system itself.
perl v5.40.0 2024-12-08 Dancer2::Serializer::YAML(3pm)
Description
This is a serializer engine that allows you to turn Perl data structures into YAML output and vice-versa.
Functions
fom_yaml($content)
This is an helper available to transform a YAML data structure to a Perl data structures.
to_yaml($content)
This is an helper available to transform a Perl data structure to YAML.
Calling this function will not trigger the serialization's hooks.
Methods
serialize($content)
Serializes a data structure to a YAML structure.
deserialize($content)
Deserializes a YAML structure to a data structure.
Name
Dancer2::Serializer::YAML - Serializer for handling YAML data
Version
version 1.1.2
