1Dancer::Serializer::JSOUNs(e3r)Contributed Perl DocumentDaatnicoenr::Serializer::JSON(3)
2
3
4

NAME

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

VERSION

9       version 1.3513
10

SYNOPSIS

DESCRIPTION

13       This class is an interface between Dancer's serializer engine
14       abstraction layer and the JSON module.
15
16       In order to use this engine, use the template setting:
17
18           serializer: JSON
19
20       This can be done in your config.yml file or directly in your app code
21       with the set keyword. This serializer will also be used when the
22       serializer is set to mutable and the correct Accept headers are
23       supplied.
24
25       The JSON module will pass configuration variables straight through.
26       Some of these can be useful when debugging/developing your app: pretty
27       and canonical, and others useful with ORMs like DBIx::Class:
28       allow_blessed and convert_blessed.  Please consult the JSON
29       documentation for more information and a full list of configuration
30       settings. You can add extra settings to the engines configuration to
31       turn these on. For example:
32
33           engines:
34               JSON:
35                   allow_blessed:   '1'
36                   canonical:       '1'
37                   convert_blessed: '1'
38

METHODS

40   serialize
41       Serialize a data structure to a JSON structure.
42
43   deserialize
44       Deserialize a JSON structure to a data structure
45
46   content_type
47       Return 'application/json'
48

AUTHOR

50       Dancer Core Developers
51
53       This software is copyright (c) 2010 by Alexis Sukrieh.
54
55       This is free software; you can redistribute it and/or modify it under
56       the same terms as the Perl 5 programming language system itself.
57
58
59
60perl v5.30.1                      2020-02-05       Dancer::Serializer::JSON(3)
Impressum