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


Manual Reference Pages  -  DANCER::SERIALIZER::JSON (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 1.3138

SYNOPSIS

DESCRIPTION

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 <B>setB> keyword. This serializer will also be used when the serializer is set to <B>mutableB> 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: <B>prettyB> and <B>canonicalB>, and others useful with ORMs like DBIx::Class: <B>allow_blessedB> and <B>convert_blessedB>. Please consult the JSON documentation for more information and a full list of configuration settings. You can add extra settings to the <B>enginesB> configuration to turn these on. For example:



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



METHODS

    serialize

Serialize a data structure to a JSON structure.

    deserialize

Deserialize a JSON structure to a data structure

    content_type

Return ’application/json’

AUTHOR

Dancer Core Developers

COPYRIGHT AND LICENSE

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.

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


perl v5.20.3 DANCER::SERIALIZER::JSON (3) 2015-06-12

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