GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Dancer::Serializer::JSON(3) User Contributed Perl Documentation Dancer::Serializer::JSON(3)

Dancer::Serializer::JSON - serializer for handling JSON data

version 1.3513

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:

    serializer: JSON

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 will pass configuration variables straight through. Some of these can be useful when debugging/developing your app: pretty and canonical, and others useful with ORMs like DBIx::Class: allow_blessed and convert_blessed. Please consult the JSON documentation for more information and a full list of configuration settings. You can add extra settings to the engines configuration to turn these on. For example:

    engines:
        JSON:
            allow_blessed:   '1'
            canonical:       '1'
            convert_blessed: '1'

Serialize a data structure to a JSON structure.

Deserialize a JSON structure to a data structure

Return 'application/json'

Dancer Core Developers

This software is copyright (c) 2010 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.

2020-01-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.