Dancer::Serializer::JSON - serializer for handling JSON data
This class is an interface between Dancer's serializer engine abstraction layer and the JSON module.
In order to use this engine, use the template setting:
This can be done in your config.yml file or directly in your app code with the set keyword. This serializer will also be used when the serializer is set to mutable and the correct Accept headers are supplied.
The JSON module has 2 configuration variables that can be useful when working with ORM's like DBIx::Class: allow_blessed and convert_blessed. Please consult the JSON documentation for more information. You can add extra settings to the engines configuration to turn these on.
engines: JSON: allow_blessed: '1' convert_blessed: '1'
Serialize a data structure to a JSON structure.
Deserialize a JSON structure to a data structure